pub trait ChainState {
    // Required methods
    fn best_block_number(&self) -> BlockNumber;
    fn finalized_number(&self) -> BlockNumber;
}
Expand description

Abstraction of the chain state.

Required Methods§

source

fn best_block_number(&self) -> BlockNumber

Returns best block number.

source

fn finalized_number(&self) -> BlockNumber

Returns last finalized block number.

Implementors§

source§

impl<B, BE, CFA> ChainState for ChainStateImpl<B, BE, CFA>
where B: BlockT, B::Header: HeaderT<Number = BlockNumber>, BE: Backend<B>, CFA: ClientForPhron<B, BE>,