Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast path if view is not stable? #3

Open
lemmy opened this issue Dec 6, 2024 · 1 comment
Open

Fast path if view is not stable? #3

lemmy opened this issue Dec 6, 2024 · 1 comment

Comments

@lemmy
Copy link

lemmy commented Dec 6, 2024

The comment suggests tha the the negation of ctx.view_is_stable... is incorrect.

#[cfg(feature = "fast_path")]
if !ctx.view_is_stable.load(Ordering::SeqCst) {
// Fast path can't be done if the view is not stable.
debug!("For fast path: {} {}", fullnode_sigs, get_all_nodes_num(&ctx));
if fullnode_sigs == get_all_nodes_num(&ctx) as usize {
fast_path_qcs.push(vote_sig.n);
}
}

@grapheo12
Copy link
Owner

Thanks for finding this.
I think it doesn't matter in the steady state because maybe_byzantine_commit() checks for fast path QCs regardless of this block of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants