Document lockout_intervals and tiny niceties (#10925)

This commit is contained in:
Ryo Onodera
2020-07-06 17:59:17 +09:00
committed by GitHub
parent 658de5b347
commit 92697973d0
3 changed files with 15 additions and 7 deletions

View File

@@ -14,7 +14,9 @@ use std::{
sync::{Arc, RwLock},
};
pub(crate) type LockoutIntervals = BTreeMap<Slot, Vec<(Slot, Rc<Pubkey>)>>;
type VotedSlot = Slot;
type ExpirationSlot = Slot;
pub(crate) type LockoutIntervals = BTreeMap<ExpirationSlot, Vec<(VotedSlot, Rc<Pubkey>)>>;
#[derive(Default)]
pub(crate) struct ReplaySlotStats(ConfirmationTiming);