Trait frame_support::traits::Lateness[][src]

pub trait Lateness<N> {
    fn lateness(&self) -> N;
}

Trait to be used by block producing consensus engine modules to determine how late the current block is (e.g. in a slot-based proposal mechanism how many slots were skipped since the previous block).

Required methods

fn lateness(&self) -> N[src]

Returns a generic measure of how late the current block is compared to its parent.

Loading content...

Implementations on Foreign Types

impl<N: Zero> Lateness<N> for ()[src]

Loading content...

Implementors

Loading content...