ckb_traits

Trait HeaderProvider

Source
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§