HeaderStore

Trait HeaderStore 

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

Source

fn get_header(&self, hash: &BlockHash) -> Option<(BlockHeader, u32)>

Retrieves the header from the store.

Source

fn get_height(&self) -> u32

Retrieves the current height of the block chain.

Source

fn get_initial_hash(&self) -> BlockHash

Retrieves the initial hash the store starts from.

Implementors§