diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 8ee4f9b721be05..152eec46cb4864 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4288,15 +4288,7 @@ impl AccountsDb { } fn get_storages_for_slot(&self, slot: Slot) -> Option { - self.storage.get(&slot).map(|storages| { - // per slot, get the storages. There should usually only be 1. - storages - .read() - .unwrap() - .values() - .cloned() - .collect::>() - }) + self.storage.get_slot_storage_entries(slot) } /// 'accounts' that exist in the current slot we are combining into a different ancient slot