move Ancestors to its own module (#17316)

This commit is contained in:
Jeff Washington (jwash)
2021-05-19 11:50:34 -05:00
committed by GitHub
parent 0781fe1b4f
commit ed9cbd50f0
12 changed files with 24 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
use crate::{
ancestors::Ancestors,
contains::Contains,
inline_spl_token_v2_0::{self, SPL_TOKEN_ACCOUNT_MINT_OFFSET, SPL_TOKEN_ACCOUNT_OWNER_OFFSET},
secondary_index::*,
@@ -15,7 +16,7 @@ use solana_sdk::{
use std::{
collections::{
btree_map::{self, BTreeMap},
HashMap, HashSet,
HashSet,
},
ops::{
Bound,
@@ -32,7 +33,6 @@ pub const ITER_BATCH_SIZE: usize = 1000;
pub type SlotList<T> = Vec<(Slot, T)>;
pub type SlotSlice<'s, T> = &'s [(Slot, T)];
pub type Ancestors = HashMap<Slot, usize>;
pub type RefCount = u64;
pub type AccountMap<K, V> = BTreeMap<K, V>;