pub trait HeaderProvider {
    // Required method
    fn get_header(&self, hash: &Byte32) -> Option<HeaderView>;
}
Expand description

Trait for header storage

Required Methods§

source

fn get_header(&self, hash: &Byte32) -> Option<HeaderView>

Get the header of the given block hash

Implementors§