use index version of calculating hash (#15189) (#15211)

* use index version of calculating hash

* invert const

* formatting

(cherry picked from commit 8424fe2c12)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-02-09 18:02:23 +00:00
committed by GitHub
parent 9be3e00546
commit 5e2b9e595d

View File

@ -122,8 +122,9 @@ impl SnapshotRequestHandler {
let mut hash_time = Measure::start("hash_time");
let mut hash_for_testing = None;
const USE_INDEX: bool = true;
snapshot_root_bank
.update_accounts_hash_with_index_option(true, test_hash_calculation);
.update_accounts_hash_with_index_option(!USE_INDEX, test_hash_calculation);
if test_hash_calculation {
hash_for_testing = Some(snapshot_root_bank.get_accounts_hash());
}