Trait sc_consensus_slots::SlotCompatible[][src]

pub trait SlotCompatible {
    fn extract_timestamp_and_slot(
        &self,
        inherent: &InherentData
    ) -> Result<(u64, u64, Duration), Error>; fn time_offset() -> SignedDuration { ... } }

Slot compatible inherent data.

Required methods

fn extract_timestamp_and_slot(
    &self,
    inherent: &InherentData
) -> Result<(u64, u64, Duration), Error>
[src]

Extract timestamp and slot from inherent data.

Loading content...

Provided methods

fn time_offset() -> SignedDuration[src]

Get the difference between chain time and local time. Defaults to always returning zero.

Loading content...

Implementors

Loading content...