Skip to content

Commit

Permalink
rename function param to avoid conflict (solana-labs#24342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Jun 30, 2022
1 parent 237b96e commit 2b0eabe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5148,7 +5148,7 @@ impl AccountsDb {

fn calculate_accounts_hash(
&self,
slot: Slot,
max_slot: Slot,
config: &CalcAccountsHashConfig<'_>,
) -> Result<(Hash, u64), BankHashVerificationError> {
use BankHashVerificationError::*;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 2b0eabe

Please sign in to comment.