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: fixing a crash on consensus #729

Merged
merged 2 commits into from
Oct 4, 2023
Merged

fix: fixing a crash on consensus #729

merged 2 commits into from
Oct 4, 2023

Conversation

themantre
Copy link
Contributor

Description

A crash could occur in the consensus if a validator receives all pre-votes for zero before receiving a proposal. In this case, the node crashed because the prepared block hash was nil.

A test is written to reproduce the crash.

@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #729 (201b223) into main (a25efe2) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head 201b223 differs from pull request most recent head cc5b212. Consider uploading reports for the commit cc5b212 to get more accurate results

@@            Coverage Diff             @@
##             main     #729      +/-   ##
==========================================
+ Coverage   83.05%   83.09%   +0.03%     
==========================================
  Files         172      172              
  Lines        8020     8026       +6     
==========================================
+ Hits         6661     6669       +8     
+ Misses       1043     1042       -1     
+ Partials      316      315       -1     

@b00f b00f merged commit f41078f into main Oct 4, 2023
10 checks passed
@themantre themantre deleted the fix-crash-consensus branch October 4, 2023 14:24
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