assert when rewrites skipped (#25110)
This commit is contained in:
parent
8e5bb0a1e2
commit
b91cc87680
|
@ -5106,6 +5106,7 @@ impl Bank {
|
||||||
let hash =
|
let hash =
|
||||||
crate::accounts_db::AccountsDb::hash_account(self.slot(), &account, &pubkey);
|
crate::accounts_db::AccountsDb::hash_account(self.slot(), &account, &pubkey);
|
||||||
rewrites_skipped.push((pubkey, hash));
|
rewrites_skipped.push((pubkey, hash));
|
||||||
|
assert_eq!(collected, CollectedInfo::default());
|
||||||
} else if !just_rewrites {
|
} else if !just_rewrites {
|
||||||
total_collected += collected;
|
total_collected += collected;
|
||||||
self.store_account(&pubkey, &account);
|
self.store_account(&pubkey, &account);
|
||||||
|
|
Loading…
Reference in New Issue