factor out InMemAccountsIndex to prepare for disk index (#19773)
This commit is contained in:
committed by
GitHub
parent
7aa5f6b833
commit
11b10439b4
@@ -1,6 +1,7 @@
|
||||
use crate::{
|
||||
ancestors::Ancestors,
|
||||
contains::Contains,
|
||||
in_mem_accounts_index::InMemAccountsIndex,
|
||||
inline_spl_token_v2_0::{self, SPL_TOKEN_ACCOUNT_MINT_OFFSET, SPL_TOKEN_ACCOUNT_OWNER_OFFSET},
|
||||
pubkey_bins::PubkeyBinCalculator16,
|
||||
secondary_index::*,
|
||||
@@ -14,7 +15,7 @@ use solana_sdk::{
|
||||
pubkey::{Pubkey, PUBKEY_BYTES},
|
||||
};
|
||||
use std::{
|
||||
collections::{btree_map::BTreeMap, hash_map::Entry, HashMap, HashSet},
|
||||
collections::{btree_map::BTreeMap, hash_map::Entry, HashSet},
|
||||
fmt::Debug,
|
||||
ops::{
|
||||
Bound,
|
||||
@@ -42,7 +43,7 @@ pub type ScanResult<T> = Result<T, ScanError>;
|
||||
pub type SlotList<T> = Vec<(Slot, T)>;
|
||||
pub type SlotSlice<'s, T> = &'s [(Slot, T)];
|
||||
pub type RefCount = u64;
|
||||
pub type AccountMap<V> = HashMap<Pubkey, V>;
|
||||
pub type AccountMap<V> = InMemAccountsIndex<V>;
|
||||
|
||||
type AccountMapEntry<T> = Arc<AccountMapEntryInner<T>>;
|
||||
|
||||
|
Reference in New Issue
Block a user