Skip to content

Commit

Permalink
update more sorted to sort_results
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Jun 13, 2024
1 parent 804a0d2 commit 5274466
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5311,13 +5311,13 @@ impl Bank {
}

// Scans all the accounts this bank can load, applying `scan_func`
pub fn scan_all_accounts<F>(&self, scan_func: F, sorted: bool) -> ScanResult<()>
pub fn scan_all_accounts<F>(&self, scan_func: F, sort_results: bool) -> ScanResult<()>
where
F: FnMut(Option<(&Pubkey, AccountSharedData, Slot)>),
{
self.rc
.accounts
.scan_all(&self.ancestors, self.bank_id, scan_func, sorted)
.scan_all(&self.ancestors, self.bank_id, scan_func, sort_results)
}

pub fn get_program_accounts_modified_since_parent(
Expand Down Expand Up @@ -5363,15 +5363,15 @@ impl Bank {
num: usize,
filter_by_address: &HashSet<Pubkey>,
filter: AccountAddressFilter,
sorted: bool,
sort_results: bool,
) -> ScanResult<Vec<(Pubkey, u64)>> {
self.rc.accounts.load_largest_accounts(
&self.ancestors,
self.bank_id,
num,
filter_by_address,
filter,
sorted,
sort_results,
)
}

Expand Down

0 comments on commit 5274466

Please sign in to comment.