-
Notifications
You must be signed in to change notification settings - Fork 4.5k
v1.1: Include account.owner into account hash #9918
Conversation
Codecov Report
@@ Coverage Diff @@
## v1.1 #9918 +/- ##
=====================================
Coverage 80.7% 80.7%
=====================================
Files 282 282
Lines 64420 64436 +16
=====================================
+ Hits 51996 52027 +31
+ Misses 12424 12409 -15 |
@mvines Thanks for review! I'm testing this locally now with tds snapshots... |
@ryoqun - is your testing complete? Ok to merge? |
@@ -1296,13 +1305,20 @@ impl AccountsDB { | |||
hasher.result() | |||
} | |||
|
|||
pub fn include_owner_in_hash(slot: Slot) -> bool { | |||
// Account hashing updated to include owner activates at this slot on the testnet | |||
slot >= 14_000_000 |
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.
Well, my bad. This will not quite work for devnet............ devnet is still at around slot 5_356_748
.
Gating logic is hard. Sorry about that. The excuse is that I only cared tds and mainnet-beta; that's already complicated enough to do flawless rolling update; not at all for devnet at the time of this pr....
This causes bankhash incompatibility between v1.1 branch and master branch for devnet: #10163 (comment)
FYI: @CriesofCarrots
manual backport of #9917 with gating logic for the v1.x / tds
fixes #9916