Use Blockstore lowest_slot to start root iterator (#9738) (#9768)

automerge
This commit is contained in:
mergify[bot]
2020-04-28 11:36:17 -07:00
committed by GitHub
parent 682b700ec8
commit 109bfc3e7a
2 changed files with 6 additions and 5 deletions

View File

@@ -1502,7 +1502,7 @@ impl Blockstore {
}
pub fn get_first_available_block(&self) -> Result<Slot> {
let mut root_iterator = self.rooted_slot_iterator(0)?;
let mut root_iterator = self.rooted_slot_iterator(self.lowest_slot())?;
Ok(root_iterator.next().unwrap_or_default())
}