From f7d4971049d6093a2c1232cdca1829f02a261123 Mon Sep 17 00:00:00 2001 From: Xiang Zhu Date: Thu, 13 Apr 2023 10:34:50 -0700 Subject: [PATCH] Remove the set_accounts_hash_for_tests call --- runtime/src/snapshot_utils.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 1adc014555cb07..9691b193fb9cfe 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -5555,15 +5555,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 ) );