diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 588ded33339fa1..f8aba920f5a188 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -5545,15 +5545,11 @@ mod tests { .unwrap(); // Reserialize the snapshot dir to convert it from PRE to POST, because only the POST type can be used // to construct a bank. - bank.accounts() - .accounts_db - .set_accounts_hash_for_tests(bank.slot(), AccountsHash(Hash::new(&[1; 32]))); - let accounts_hash = &bank.get_accounts_hash().unwrap(); assert!( crate::serde_snapshot::reserialize_bank_with_new_accounts_hash( bank_snapshots_dir, bank.slot(), - accounts_hash, + &AccountsHash(Hash::new_unique()), None ) );