verify bank hash on startup with ledger tool option (#17939)

This commit is contained in:
Jeff Washington (jwash)
2021-06-15 11:52:12 -05:00
committed by GitHub
parent 1b1d34da59
commit f558b9b6bf
7 changed files with 59 additions and 39 deletions

View File

@ -146,6 +146,7 @@ mod tests {
let old_last_bank = old_bank_forks.get(old_last_slot).unwrap();
let check_hash_calculation = false;
let (deserialized_bank, _timing) = snapshot_utils::bank_from_archive(
&account_paths,
&[],
@ -167,6 +168,7 @@ mod tests {
false,
None,
accounts_db::AccountShrinkThreshold::default(),
check_hash_calculation,
)
.unwrap();