Use Blockstore lowest_slot to start root iterator (#9738)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user