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

automerge
This commit is contained in:
mergify[bot]
2020-04-28 11:11:10 -07:00
committed by GitHub
parent 3cc75b4bab
commit 2f0f218ad9
2 changed files with 6 additions and 5 deletions

View File

@@ -1468,7 +1468,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())
}