-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
v1.1: Always enable nonce slot/owner-in-hash #10166
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1330,10 +1330,8 @@ impl AccountsDB { | |
hasher.result() | ||
} | ||
|
||
pub fn include_owner_in_hash(slot: Slot) -> bool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mvines Well, I've found we can't remove this gating until the cluster is over an epoch after eager rent collection is enabled. That's because this So we must wait to remove this for tds until eager rent collection updates all accounts... This also means for mainnet-beta, we need similar gating still for the 1.1 branch for the cluster... Maybe that's reason #10163 is occurring too; we need this logic for master to consume tds snapshots. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, ok cool. Happy to let this PR sit until Monday. I was just trying to get ahead of things for the v1.0 -> v1.1 mainnet-beta upgrade There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh sure. The trick is that we're starting to run out of time. Here's what the release timeline looks like for the next week:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I'll adjust the transition plan accordingly. :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I filed #10227 to track this change for a little later |
||
// Account hashing updated to include owner activates at this slot on the testnet | ||
// DANGER: Remove this guard ABSOLUTELY before the mainnet-beta transitions to v1.1. | ||
slot >= 14_000_000 | ||
pub fn include_owner_in_hash(_slot: Slot) -> bool { | ||
true | ||
} | ||
|
||
pub fn hash_account_data( | ||
|
@@ -3532,7 +3530,7 @@ pub mod tests { | |
let loaded_account = db.load_slow(&ancestors, key).unwrap().0; | ||
assert_eq!( | ||
loaded_account.hash, | ||
AccountsDB::hash_account(some_slot, &account, &key, false) | ||
AccountsDB::hash_account(some_slot, &account, &key, true) | ||
); | ||
} | ||
} | ||
|
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.
I moved this change into #10223