cleanup api (#22845)

This commit is contained in:
Jeff Washington (jwash)
2022-01-31 11:39:23 -06:00
committed by GitHub
parent bc800a8d5a
commit fb95fa68a2
3 changed files with 3 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ impl SnapshotRequestHandler {
let previous_hash = if test_hash_calculation {
// We have to use the index version here.
// We cannot calculate the non-index way because cache has not been flushed and stores don't match reality.
snapshot_root_bank.update_accounts_hash_with_index_option(true, false, None, false)
snapshot_root_bank.update_accounts_hash_with_index_option(true, false, false)
} else {
Hash::default()
};
@@ -149,7 +149,6 @@ impl SnapshotRequestHandler {
let this_hash = snapshot_root_bank.update_accounts_hash_with_index_option(
use_index_hash_calculation,
test_hash_calculation,
Some(snapshot_root_bank.epoch_schedule().slots_per_epoch),
false,
);
let hash_for_testing = if test_hash_calculation {