assert when rewrites skipped (#25110)

This commit is contained in:
Jeff Washington (jwash) 2022-05-10 13:55:48 -05:00 committed by GitHub
parent 8e5bb0a1e2
commit b91cc87680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -5106,6 +5106,7 @@ impl Bank {
let hash =
crate::accounts_db::AccountsDb::hash_account(self.slot(), &account, &pubkey);
rewrites_skipped.push((pubkey, hash));
assert_eq!(collected, CollectedInfo::default());
} else if !just_rewrites {
total_collected += collected;
self.store_account(&pubkey, &account);