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): detect if the system time is behind the network #939

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Jan 16, 2024

Description

This PR added logic to detect when the network majority has voted for a block,
but the new height timer has not yet started. This situation can occur if the system
time is lagging behind the network time.

@b00f b00f requested review from kehiy and themantre and removed request for kehiy January 16, 2024 06:20
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Merging #939 (9d0871a) into main (f29d3f0) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #939      +/-   ##
==========================================
+ Coverage   83.34%   83.40%   +0.05%     
==========================================
  Files         171      171              
  Lines        8828     8827       -1     
==========================================
+ Hits         7358     7362       +4     
+ Misses       1114     1112       -2     
+ Partials      356      353       -3     

@themantre themantre merged commit 9235e8d into main Jan 16, 2024
12 checks passed
@themantre themantre deleted the network-lag-consensus branch January 16, 2024 07:15
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