diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index e24819b10c..b9c71761fc 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -1374,6 +1374,8 @@ fn load_frozen_forks( )?; if slot >= dev_halt_at_slot { + bank.force_flush_accounts_cache(); + let _ = bank.verify_bank_hash(false); break; } } diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index f50c27b93c..90c351eb78 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -5777,7 +5777,7 @@ impl Bank { /// snapshot. /// Only called from startup or test code. #[must_use] - fn verify_bank_hash(&self, test_hash_calculation: bool) -> bool { + pub fn verify_bank_hash(&self, test_hash_calculation: bool) -> bool { self.rc.accounts.verify_bank_hash_and_lamports( self.slot(), &self.ancestors,