Add accounts shrink paths (bp #14238) (#14270)

* Add shrink paths (#14238)


(cherry picked from commit baa9602411)

* Ignore long/hanging test (#14261)

Co-authored-by: sakridge <sakridge@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-23 08:03:33 +00:00
committed by GitHub
parent bd0b1503c6
commit 52ffb9a64a
8 changed files with 133 additions and 21 deletions

View File

@@ -712,6 +712,10 @@ impl<T: 'static + Clone> AccountsIndex<T> {
.contains(&slot)
}
pub fn num_roots(&self) -> usize {
self.roots_tracker.read().unwrap().roots.len()
}
pub fn all_roots(&self) -> Vec<Slot> {
self.roots_tracker
.read()