Skip to content

Commit

Permalink
Remove the set_accounts_hash_for_tests call
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzhu70 committed Apr 13, 2023
1 parent 2e345d8 commit f7d4971
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
);
Expand Down

0 comments on commit f7d4971

Please sign in to comment.