mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Enr fork (#967)
* Start fixing enr-fork-id * Fix time-until-next-fork logic * Remove fork crate
This commit is contained in:
@@ -35,6 +35,9 @@ pub trait SlotClock: Send + Sync + Sized {
|
||||
/// Returns the duration between slots
|
||||
fn slot_duration(&self) -> Duration;
|
||||
|
||||
/// Returns the duration from now until `slot`.
|
||||
fn duration_to_slot(&self, slot: Slot) -> Option<Duration>;
|
||||
|
||||
/// Returns the duration until the next slot.
|
||||
fn duration_to_next_slot(&self) -> Option<Duration>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user