Skip to content

[Fix] Fix quorum check for round advancement. #3617

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

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

acoglio
Copy link
Collaborator

@acoglio acoglio commented Apr 29, 2025

When deciding whether to advance from round R to R+1, this must check whether a quorum of certificates exists at round R, not R+1.

This is just one of several ways in which a validator can advance its round, which is why this issue may have been "masked".

When deciding whether to advance from round `R` to `R+1`, this must check
whether a quorum of certificates exists at round `R`, not `R+1`.

This is just one of several ways in which a validator can advance its round,
which is why this issue may have been "masked".
@acoglio acoglio requested review from kaimast and raychu86 April 29, 2025 16:36
@kaimast
Copy link
Collaborator

kaimast commented Apr 30, 2025

This looks fine. However, I think when finding potential bugs in the consensus layer, there should be an actual unit/integration test that fails before the fix.

Have you thought about if/how this could be tested?

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

Successfully merging this pull request may close these issues.

3 participants