Consolidate entry tick verification into one function (#7740)
* Consolidate entry tick verification into one function * Mark bad slots as dead in blocktree processor * more feedback * Add bank.is_complete * feedback
This commit is contained in:
@@ -902,6 +902,10 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_complete(&self) -> bool {
|
||||
self.tick_height() == self.max_tick_height()
|
||||
}
|
||||
|
||||
pub fn is_block_boundary(&self, tick_height: u64) -> bool {
|
||||
tick_height % self.ticks_per_slot == 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user