name arguments to help with confusion (#17942)

This commit is contained in:
Jeff Washington (jwash) 2021-06-14 16:21:48 -05:00 committed by GitHub
parent 62e1b20e56
commit 7fde9b6ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -4830,8 +4830,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!(