diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index cb81be92c9c876..8602dd4141314a 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -5148,7 +5148,7 @@ impl AccountsDb { fn calculate_accounts_hash( &self, - slot: Slot, + max_slot: Slot, config: &CalcAccountsHashConfig<'_>, ) -> Result<(Hash, u64), BankHashVerificationError> { use BankHashVerificationError::*; @@ -5182,7 +5182,7 @@ impl AccountsDb { return None; } if let AccountIndexGetResult::Found(lock, index) = - self.accounts_index.get(pubkey, config.ancestors, Some(slot)) + self.accounts_index.get(pubkey, config.ancestors, Some(max_slot)) { let (slot, account_info) = &lock.slot_list()[index]; if !account_info.is_zero_lamport() {