pub trait HeaderStore {
// Required methods
fn get_header(&self, hash: &BlockHash) -> Option<(BlockHeader, u32)>;
fn get_height(&self) -> u32;
fn get_initial_hash(&self) -> BlockHash;
}Required Methods§
Sourcefn get_header(&self, hash: &BlockHash) -> Option<(BlockHeader, u32)>
fn get_header(&self, hash: &BlockHash) -> Option<(BlockHeader, u32)>
Retrieves the header from the store.
Sourcefn get_height(&self) -> u32
fn get_height(&self) -> u32
Retrieves the current height of the block chain.
Sourcefn get_initial_hash(&self) -> BlockHash
fn get_initial_hash(&self) -> BlockHash
Retrieves the initial hash the store starts from.