pub trait HeaderProvider {
// Required method
fn get_header(&self, hash: &Byte32) -> Option<HeaderView>;
}
Expand description
Trait for header storage
Required Methods§
Sourcefn get_header(&self, hash: &Byte32) -> Option<HeaderView>
fn get_header(&self, hash: &Byte32) -> Option<HeaderView>
Get the header of the given block hash