From 8b5ba771add98ee0b61550c115329feb3e568d1a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 14:46:07 +0000 Subject: [PATCH] name arguments to help with confusion (#17942) (#17948) (cherry picked from commit 7fde9b6ff03b8763ad4c84f5fce2670e736bb199) # Conflicts: # runtime/src/accounts_db.rs Co-authored-by: Jeff Washington (jwash) --- runtime/src/accounts_db.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index c735180f18..16d7d3fe88 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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!(