Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont skip eager rent collect across gapped epochs #10206

Merged
merged 16 commits into from
Jun 25, 2020
3 changes: 2 additions & 1 deletion runtime/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ pub type Ancestors = HashMap<Slot, usize>;

pub type RefCount = u64;
type AccountMapEntry<T> = (AtomicU64, RwLock<SlotList<T>>);
pub type AccountMap<K, V> = BTreeMap<K, V>;

#[derive(Debug, Default)]
pub struct AccountsIndex<T> {
pub account_maps: BTreeMap<Pubkey, AccountMapEntry<T>>,
pub account_maps: AccountMap<Pubkey, AccountMapEntry<T>>,

pub roots: HashSet<Slot>,
pub uncleaned_roots: HashSet<Slot>,
Expand Down
Loading