Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Ledger replay supermajority squash doesn't handle duplicate roots#12319

Merged
carllin merged 1 commit intosolana-labs:masterfrom
carllin:FixBlockstore
Sep 18, 2020
Merged

Ledger replay supermajority squash doesn't handle duplicate roots#12319
carllin merged 1 commit intosolana-labs:masterfrom
carllin:FixBlockstore

Conversation

@carllin
Copy link
Copy Markdown
Contributor

@carllin carllin commented Sep 17, 2020

Problem

Detection of supermajority root on ledger replay does not sum the stake of vote accounts with the same root. Thanks @ryoqun for pointing this out: #11727 (comment)

Summary of Changes

Fix and add test

Fixes #

@carllin carllin added the v1.3 label Sep 17, 2020
@carllin carllin requested a review from ryoqun September 17, 2020 20:58
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 17, 2020

Codecov Report

Merging #12319 into master will increase coverage by 0.0%.
The diff coverage is 97.6%.

@@           Coverage Diff           @@
##           master   #12319   +/-   ##
=======================================
  Coverage    82.1%    82.1%           
=======================================
  Files         342      342           
  Lines       80393    80433   +40     
=======================================
+ Hits        66030    66097   +67     
+ Misses      14363    14336   -27     

Copy link
Copy Markdown
Contributor

@ryoqun ryoqun left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing this quickly!

@carllin carllin merged commit 3533e11 into solana-labs:master Sep 18, 2020
mergify Bot pushed a commit that referenced this pull request Sep 18, 2020
mergify Bot added a commit that referenced this pull request Sep 18, 2020
(cherry picked from commit 3533e11)

Co-authored-by: carllin <wumu727@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants