(cherry picked from commit ef8b7d9c62
)
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
@ -1383,6 +1383,8 @@ fn load_frozen_forks(
|
|||||||
)?;
|
)?;
|
||||||
|
|
||||||
if slot >= dev_halt_at_slot {
|
if slot >= dev_halt_at_slot {
|
||||||
|
bank.force_flush_accounts_cache();
|
||||||
|
let _ = bank.verify_bank_hash(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5750,7 +5750,7 @@ impl Bank {
|
|||||||
/// snapshot.
|
/// snapshot.
|
||||||
/// Only called from startup or test code.
|
/// Only called from startup or test code.
|
||||||
#[must_use]
|
#[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.rc.accounts.verify_bank_hash_and_lamports(
|
||||||
self.slot(),
|
self.slot(),
|
||||||
&self.ancestors,
|
&self.ancestors,
|
||||||
|
Reference in New Issue
Block a user