referrerpolicy=no-referrer-when-downgrade

Trait bp_runtime::HeaderIdProvider

source ·
pub trait HeaderIdProvider<Header: HeaderT> {
    // Required methods
    fn id(&self) -> HeaderId<Header::Hash, Header::Number>;
    fn parent_id(&self) -> Option<HeaderId<Header::Hash, Header::Number>>;
}
Expand description

Generic header id provider.

Required Methods§

source

fn id(&self) -> HeaderId<Header::Hash, Header::Number>

Get the header id.

source

fn parent_id(&self) -> Option<HeaderId<Header::Hash, Header::Number>>

Get the header id for the parent block.

Implementors§

source§

impl<Header: HeaderT> HeaderIdProvider<Header> for Header