diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 20e7929177..75c29c61ea 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -3332,8 +3332,7 @@ fn main() { } }; let mut measure = Measure::start("scanning accounts"); - bank.scan_all_accounts_with_modified_slots(scan_func) - .unwrap(); + bank.scan_all_accounts(scan_func).unwrap(); measure.stop(); info!("{}", measure); if let Some(json_serializer) = json_serializer { diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index d42bc703d7..9449b7c3a4 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -6854,7 +6854,8 @@ impl Bank { self.rc.accounts.load_all(&self.ancestors, self.bank_id) } - pub fn scan_all_accounts_with_modified_slots(&self, scan_func: F) -> ScanResult<()> + // Scans all the accounts this bank can load, applying `scan_func` + pub fn scan_all_accounts(&self, scan_func: F) -> ScanResult<()> where F: FnMut(Option<(&Pubkey, AccountSharedData, Slot)>), {