Upgrade codebase to new SlotClock API

This commit is contained in:
Paul Hauner
2019-08-29 14:26:30 +10:00
parent 4557d2c84b
commit 7d03806107
11 changed files with 43 additions and 54 deletions

View File

@@ -33,7 +33,7 @@ pub trait SlotClock: Send + Sync + Sized {
fn new(genesis_slot: Slot, genesis: Instant, slot_duration: Duration) -> Self;
fn present_slot(&self) -> Option<Slot>;
fn now(&self) -> Option<Slot>;
fn duration_to_next_slot(&self) -> Option<Duration>;