referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::Lateness

pub trait Lateness<N> {
    // Required method
    fn lateness(&self) -> N;
}
Expand description

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

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

Implementations on Foreign Types§

§

impl<N> Lateness<N> for ()
where N: Zero,

§

fn lateness(&self) -> N

Implementors§