Start saving/loading prior_roots(_with_hash) to snapshot (#23844)
* Start saving/loading prior_roots(_with_hash) to snapshot * Update runtime/src/accounts_index.rs Co-authored-by: Michael Vines <mvines@gmail.com> * Update runtime/src/accounts_index.rs Co-authored-by: Michael Vines <mvines@gmail.com> * update comment Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b22165ad69
commit
396b49a7c1
@@ -652,7 +652,7 @@ impl RollingBitField {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct RootsTracker {
|
||||
roots: RollingBitField,
|
||||
pub(crate) roots: RollingBitField,
|
||||
uncleaned_roots: HashSet<Slot>,
|
||||
previous_uncleaned_roots: HashSet<Slot>,
|
||||
}
|
||||
@@ -869,7 +869,7 @@ pub struct AccountsIndex<T: IndexValue> {
|
||||
program_id_index: SecondaryIndex<DashMapSecondaryIndexEntry>,
|
||||
spl_token_mint_index: SecondaryIndex<DashMapSecondaryIndexEntry>,
|
||||
spl_token_owner_index: SecondaryIndex<RwLockSecondaryIndexEntry>,
|
||||
roots_tracker: RwLock<RootsTracker>,
|
||||
pub(crate) roots_tracker: RwLock<RootsTracker>,
|
||||
ongoing_scan_roots: RwLock<BTreeMap<Slot, u64>>,
|
||||
// Each scan has some latest slot `S` that is the tip of the fork the scan
|
||||
// is iterating over. The unique id of that slot `S` is recorded here (note we don't use
|
||||
|
Reference in New Issue
Block a user