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): rejecting vote with round numbers exceeding the limit #466

Merged
merged 1 commit into from
May 11, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented May 10, 2023

Description

This commit adds a check to ensure that votes with round numbers more than two rounds larger than the current round are rejected. This prevents byzantine validators from causing network crashes by broadcasting votes with large round numbers.

Related issue(s)

Fixing #465

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #466 (e02eb2e) into main (6e6932f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #466   +/-   ##
=======================================
  Coverage   82.45%   82.46%           
=======================================
  Files         149      149           
  Lines        7004     7007    +3     
=======================================
+ Hits         5775     5778    +3     
  Misses        938      938           
  Partials      291      291           

@themantre themantre merged commit eb42338 into pactus-project:main May 11, 2023
@b00f b00f deleted the vote-with-big-round branch May 11, 2023 05:16
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