call set_startup and add metrics on generate_index (#20006)

This commit is contained in:
Jeff Washington (jwash)
2021-09-18 22:08:58 -05:00
committed by GitHub
parent db40d06a39
commit 742155c214
4 changed files with 28 additions and 1 deletions

View File

@@ -1376,6 +1376,11 @@ impl<T: IndexValue> AccountsIndex<T> {
let iter = self.iter(Some(range), true);
iter.hold_range_in_memory(range, start_holding);
}
pub fn set_startup(&self, value: bool) {
self.storage.storage.set_startup(value);
}
/// Get an account
/// The latest account that appears in `ancestors` or `roots` is returned.
pub(crate) fn get(