rename function param to avoid conflict (#24342)
This commit is contained in:
parent
a91b0c8ea3
commit
d20b4c9958
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue