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 propagation on startup from snapshot #12177

Merged
merged 2 commits into from
Sep 11, 2020
Merged

Conversation

carllin
Copy link
Contributor

@carllin carllin commented Sep 11, 2020

Problem

If the leader for slot N starts from a snapshot of slot N, they will not get propagation confirmed, and will stop voting

Thanks @t-nelson for reporting!

Summary of Changes

Propagate votes for descendants of N to slot N itself

Fixes #

t-nelson
t-nelson previously approved these changes Sep 11, 2020
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

LGTM!

@mvines
Copy link
Member

mvines commented Sep 11, 2020

Woah, nice bug!

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #12177 into master will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #12177   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         338      338           
  Lines       79397    79428   +31     
=======================================
+ Hits        65177    65210   +33     
+ Misses      14220    14218    -2     

@carllin carllin removed the v1.2 label Sep 11, 2020
@carllin carllin merged commit 9c490e0 into solana-labs:master Sep 11, 2020
mergify bot pushed a commit that referenced this pull request Sep 11, 2020
mergify bot added a commit that referenced this pull request Sep 11, 2020
@t-nelson t-nelson added the v1.2 label Sep 12, 2020
mergify bot pushed a commit that referenced this pull request Sep 12, 2020
t-nelson pushed a commit that referenced this pull request Sep 12, 2020
mergify bot added a commit that referenced this pull request Sep 12, 2020
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.

3 participants