ledger tool halt at slot verify hash (#23424)
This commit is contained in:
parent
d909b7c80b
commit
ef8b7d9c62
|
@ -1374,6 +1374,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5777,7 +5777,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,
|
||||||
|
|
Loading…
Reference in New Issue