pub trait ChainInfoProvider: Send + Sync + 'static {
    // Required methods
    fn is_block_imported(&mut self, block: &BlockId) -> bool;
    fn get_finalized_at(&mut self, number: BlockNumber) -> Result<BlockId, ()>;
    fn get_parent_hash(&mut self, block: &BlockId) -> Result<BlockHash, ()>;
    fn get_highest_finalized(&mut self) -> BlockId;
}

Required Methods§

source

fn is_block_imported(&mut self, block: &BlockId) -> bool

source

fn get_finalized_at(&mut self, number: BlockNumber) -> Result<BlockId, ()>

source

fn get_parent_hash(&mut self, block: &BlockId) -> Result<BlockHash, ()>

source

fn get_highest_finalized(&mut self) -> BlockId

Implementors§

source§

impl<B, C> ChainInfoProvider for SubstrateChainInfoProvider<B, C>
where B: BlockT<Hash = BlockHash>, B::Header: HeaderT<Number = BlockNumber>, C: HeaderBackend<B>,

source§

impl<CIP> ChainInfoProvider for AuxFinalizationChainInfoProvider<CIP>
where CIP: ChainInfoProvider,

source§

impl<CIP> ChainInfoProvider for CachedChainInfoProvider<CIP>
where CIP: ChainInfoProvider,