-
Notifications
You must be signed in to change notification settings - Fork 547
v2.2: include existing zero lamport in duplicates (backport of #6158) #6160
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
Conversation
(cherry picked from commit a1f90ac)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2.2 #6160 +/- ##
=======================================
Coverage 83.4% 83.4%
=======================================
Files 806 806
Lines 373245 373245
=======================================
+ Hits 311361 311379 +18
+ Misses 61884 61866 -18 🚀 New features to boost your workflow:
|
InsertNewEntryResults::ExistedNewEntryZeroLamports => {} | ||
InsertNewEntryResults::ExistedNewEntryNonZeroLamports(other_slot) => { | ||
InsertNewEntryResults::ExistedNewEntryZeroLamports(other_slot) | ||
| InsertNewEntryResults::ExistedNewEntryNonZeroLamports(other_slot) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these need to be differentiated anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like ExistedNewEntryZeroLamports vs ExistedNewEntryNonZeroLamports are handled identically in all uses now, aren't they?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are.
We can refactor them in master with a future PR. For a backport PR, we would like to exclude refactoring changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
…yz#6158) (anza-xyz#6160) include existing zero lamport in duplicates (anza-xyz#6158) (cherry picked from commit a1f90ac) Co-authored-by: HaoranYi <219428+HaoranYi@users.noreply.github.com>
Problem
Include exising zero accounts in
duplicates
list so that lthash get the correct set of accounts to mixout when verifying at startup.Summary of Changes
Fixes #6153
This is an automatic backport of pull request #6158 done by [Mergify](https://mergify.com).