lighthouse/eth2/utils/slot_clock/src/lib.rs

12 lines
356 B
Rust
Raw Normal View History

2018-12-30 02:02:44 +00:00
mod system_time_slot_clock;
mod testing_slot_clock;
pub use crate::system_time_slot_clock::{Error as SystemTimeSlotClockError, SystemTimeSlotClock};
pub use crate::testing_slot_clock::{Error as TestingSlotClockError, TestingSlotClock};
2019-01-15 06:42:45 +00:00
pub trait SlotClock: Send + Sync {
2018-12-30 02:02:44 +00:00
type Error;
fn present_slot(&self) -> Result<Option<u64>, Self::Error>;
}