Rename leader_after_slots to leader_after_n_slots (#6459)

This commit is contained in:
Justin Starry
2019-10-19 23:28:33 -04:00
committed by GitHub
parent e2c316d2d0
commit 31e9074ae5
2 changed files with 4 additions and 4 deletions

View File

@@ -100,14 +100,14 @@ impl PohRecorder {
})
}
pub fn leader_after_slots(&self, slots: u64) -> Option<Pubkey> {
pub fn leader_after_n_slots(&self, slots: u64) -> Option<Pubkey> {
let current_slot = self.tick_height.saturating_sub(1) / self.ticks_per_slot;
self.leader_schedule_cache
.slot_leader_at(current_slot + slots, None)
}
pub fn next_slot_leader(&self) -> Option<Pubkey> {
self.leader_after_slots(1)
self.leader_after_n_slots(1)
}
pub fn bank(&self) -> Option<Arc<Bank>> {