diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 685fca0887..f3dad072c3 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -2422,9 +2422,9 @@ impl AccountsDb { let dirty_stores_len = dirty_stores.len(); let pubkeys = DashSet::new(); for (_slot, store) in dirty_stores { - for account in store.accounts.accounts(0) { + AppendVecAccountsIter::new(&store.accounts).for_each(|account| { pubkeys.insert(account.meta.pubkey); - } + }); } trace!( "dirty_stores.len: {} pubkeys.len: {}",