remove slot lookup (#17691) (#17694)

(cherry picked from commit 4bd32d891f)

    # Conflicts:
    #       runtime/src/accounts_db.rs

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-04 06:09:46 +00:00
committed by GitHub
parent 58dd6dc227
commit d433bd3d84

View File

@ -4229,7 +4229,6 @@ impl AccountsDb {
let sub_storages = snapshot_storages.get(slot);
if let Some(sub_storages) = sub_storages {
for storage in sub_storages {
let slot = storage.slot();
let accounts = storage.accounts.accounts(0);
accounts.into_iter().for_each(|stored_account| {
scan_func(LoadedAccount::Stored(stored_account), &mut retval, slot)