name arguments to help with confusion (#17942) (#17948)

(cherry picked from commit 7fde9b6ff0)

    # Conflicts:
    #       runtime/src/accounts_db.rs

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-15 14:46:07 +00:00
committed by GitHub
parent 991f99b239
commit 8b5ba771ad

View File

@ -4673,8 +4673,16 @@ impl AccountsDb {
) -> Result<(), BankHashVerificationError> {
use BankHashVerificationError::*;
let (calculated_hash, calculated_lamports) =
self.calculate_accounts_hash_helper(true, slot, ancestors, true, false)?;
let use_index = true;
let check_hash = true;
let can_cached_slot_be_unflushed = false;
let (calculated_hash, calculated_lamports) = self.calculate_accounts_hash_helper(
use_index,
slot,
ancestors,
check_hash,
can_cached_slot_be_unflushed,
)?;
if calculated_lamports != total_lamports {
warn!(