-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
remove expected rent collection and rehashing completely #28422
Conversation
fc0fe52
to
3508383
Compare
3508383
to
b255ed6
Compare
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.
Love the idea. So with this change does this mean validators no longer do the rehashing, which implies they can no longer skip rewrites (temporarily)?
If they do, their machine will fail consensus until both features gets activated. That option is hidden on the cli. |
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
(cherry picked from commit 28a89a1) # Conflicts: # accounts-bench/src/main.rs # core/src/accounts_hash_verifier.rs # core/tests/epoch_accounts_hash.rs # runtime/benches/accounts.rs # runtime/src/accounts_background_service.rs # runtime/src/accounts_db.rs # runtime/src/expected_rent_collection.rs # runtime/src/snapshot_package.rs
This reverts commit 5571aca.
This reverts commit 5571aca.
Problem
For eliminating rewrites, to maintain consensus and accounts hash calculation while developing and testing, and presumably during roll out, there was a system in place to allow any validator to skip rewrites and still maintain consensus.
A better way to solve the issue with hashes and eliminating rewrites is to stop updating
rent_epoch
for rent-exempt accounts and to stop hashing the slot for the account hash. These 2 projects (features) are underway. This codepath complicates removing the slot from the account hash feature.Summary of Changes
Remove the rehash/expected rent epoch code path completely and wait for the features. Once we stop updating
rent_epoch
and using the slot in the hash, the hash is always complete.Fixes #