From b91cc8768011a8d9d93f260dedf5789356bbdaa6 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 10 May 2022 13:55:48 -0500 Subject: [PATCH] assert when rewrites skipped (#25110) --- runtime/src/bank.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index a3ca553ec2..c78ac59cf8 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -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);