This repository was archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Deprecates --accounts-hash-interval-slots #31987
Merged
brooksprumo
merged 7 commits into
solana-labs:master
from
brooksprumo:accounts-hash-interval/validator
Jun 20, 2023
Merged
Deprecates --accounts-hash-interval-slots #31987
brooksprumo
merged 7 commits into
solana-labs:master
from
brooksprumo:accounts-hash-interval/validator
Jun 20, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #31987 +/- ##
=======================================
Coverage 81.9% 81.9%
=======================================
Files 761 761
Lines 207599 207595 -4
=======================================
+ Hits 170071 170079 +8
+ Misses 37528 37516 -12 |
t-nelson
reviewed
Jun 6, 2023
t-nelson
reviewed
Jun 20, 2023
Co-authored-by: Trent Nelson <[email protected]>
t-nelson
approved these changes
Jun 20, 2023
Contributor
t-nelson
left a comment
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.
ha! i knew fmt was going to fail. github wouldn't let me include the context line in the suggested changes 😢
![]()
wen-coding
pushed a commit
to wen-coding/solana
that referenced
this pull request
Aug 15, 2023
Co-authored-by: Trent Nelson <[email protected]>
wen-coding
pushed a commit
to wen-coding/solana
that referenced
this pull request
Aug 15, 2023
Co-authored-by: Trent Nelson <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The accounts hash interval is fraught with sharp edges. Here's a few of them:
Halt on accounts hash mismatch
The
--halt-on-known-validators-accounts-hash-mismatchflag exists as a way to ensure the accounts state is correct. This flag has now been deprecated. With the Epoch Accounts Hash feature, the accounts state will be included as part of a bank hash once per epoch, thus baking it into consensus itself.Since the accounts state is now checked explicitly (with EAH), and the extra flag has been deprecated, there is not a need to perform extra accounts hash verifications.
Incremental snapshots
Incremental snapshots will soon use the Incremental Accounts Hash feature, which substantially reduces the amount of time (and resources) required to calculate the accounts hash necessary for an incremental snapshot. This was born from the need to support continued growth of the cluster as the number of accounts grows to be greater than 1 billion.
If the incremental snapshot interval is not equal to the accounts hash interval, then that means additional accounts hash calculations will run, and they will be full accounts hash calculations. This will negate the benefits of the incremental accounts hash calculation.
For performance, we want to avoid full accounts hash calculations, and thus should not perform additional/unnecessary ones.
Summary of Changes
accounts-hash-interval-slotsflagLater, we'll be able to remove the whole
AccountsHashVerifierbackground request too!