referrerpolicy=no-referrer-when-downgrade

Trait frame_support::traits::Lateness

source ·
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§

source

fn lateness(&self) -> N

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

Implementations on Foreign Types§

source§

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

source§

fn lateness(&self) -> N

Implementors§