From 7fde9b6ff03b8763ad4c84f5fce2670e736bb199 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Mon, 14 Jun 2021 16:21:48 -0500 Subject: [PATCH] name arguments to help with confusion (#17942) --- 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 befb089555..916502929f 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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!(