rename function param to avoid conflict (#24342)

This commit is contained in:
Jeff Washington (jwash) 2022-04-14 11:56:32 -05:00 committed by GitHub
parent a91b0c8ea3
commit d20b4c9958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5148,7 +5148,7 @@ impl AccountsDb {
fn calculate_accounts_hash( fn calculate_accounts_hash(
&self, &self,
slot: Slot, max_slot: Slot,
config: &CalcAccountsHashConfig<'_>, config: &CalcAccountsHashConfig<'_>,
) -> Result<(Hash, u64), BankHashVerificationError> { ) -> Result<(Hash, u64), BankHashVerificationError> {
use BankHashVerificationError::*; use BankHashVerificationError::*;
@ -5182,7 +5182,7 @@ impl AccountsDb {
return None; return None;
} }
if let AccountIndexGetResult::Found(lock, index) = 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]; let (slot, account_info) = &lock.slot_list()[index];
if !account_info.is_zero_lamport() { if !account_info.is_zero_lamport() {