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

[Fix] Update is_proposing check #3105

Merged
merged 1 commit into from Feb 20, 2024
Merged

[Fix] Update is_proposing check #3105

merged 1 commit into from Feb 20, 2024

Conversation

raychu86
Copy link
Contributor

@raychu86 raychu86 commented Feb 20, 2024

Motivation

This PR attempts to solve the issue where validators are stuck on an old proposal and unable to advance/participate in future rounds of consensus. The current check was preventing the round from advancing if we had a pending proposal, because we were too aggressively assuming the other validators would still sign it. The new logic will now advance the round even if we are proposing if the peer's certificate is already past our proposal round.

If the peer already has a certificate that hit availability threshold, then we can assume they won't be signing for old proposals.

Related to #3074

@joske
Copy link
Contributor

joske commented Feb 20, 2024

I tested this branch, and this seems to work. On mainnet branch I could still reproduce the issue.

Copy link
Contributor

@howardwu howardwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, reviewed it by hand as well, this change is desirable

@howardwu howardwu merged commit d7accde into mainnet Feb 20, 2024
23 of 24 checks passed
@howardwu howardwu deleted the update-round-advancement branch February 20, 2024 23:03
@howardwu howardwu changed the title [fix] Update is_proposing check [Fix] Update is_proposing check Feb 20, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants