6 #ifndef KAGOME_CONSENSUS_BABEUTIL 7 #define KAGOME_CONSENSUS_BABEUTIL 28 std::function<std::tuple<BabeSlotNumber, bool>()> &&f) = 0;
68 #endif // KAGOME_CONSENSUS_BABEUTIL virtual ~BabeUtil()=default
virtual BabeTimePoint slotFinishTime(BabeSlotNumber slot) const =0
virtual BabeTimePoint slotStartTime(BabeSlotNumber slot) const =0
virtual EpochNumber slotToEpoch(BabeSlotNumber slot_number) const =0
virtual BabeSlotNumber syncEpoch(std::function< std::tuple< BabeSlotNumber, bool >()> &&f)=0
BabeClock::TimePoint BabeTimePoint
BABE uses system clock's time points.
uint64_t BabeSlotNumber
slot number of the Babe production
virtual BabeSlotNumber getCurrentSlot() const =0
virtual BabeDuration remainToFinishOfSlot(BabeSlotNumber slot) const =0
uint64_t EpochNumber
number of the epoch in the Babe production
virtual BabeDuration remainToStartOfSlot(BabeSlotNumber slot) const =0
BabeClock::Duration BabeDuration
virtual BabeSlotNumber slotInEpoch(BabeSlotNumber slot_number) const =0