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(consensus): prevent moving to next round on decided vote #1617

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Nov 28, 2024

Description

This PR fixes a potential bug in the consensus.
When the consensus lags and receives a decided vote after a majority of precommits, it moves to the next height but erroneously increments the round by one. To address this, we first check the decided vote and then call the onAddVote method.

@themantre themantre merged commit f4d34ef into pactus-project:1.6.x Nov 28, 2024
1 check passed
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.

2 participants