referrerpolicy=no-referrer-when-downgrade

Trait MmrClient

Source
pub trait MmrClient<B, BE>:
    BlockchainEvents<B>
    + HeaderBackend<B>
    + HeaderMetadata<B>
    + ProvideRuntimeApi<B>
where B: Block, BE: Backend<B>, Self::Api: MmrApi<B, MmrRootHash, NumberFor<B>>,
{ // Provided method fn first_mmr_block_num( &self, notification: &FinalityNotification<B>, ) -> Option<NumberFor<B>> { ... } }
Expand description

A convenience MMR client trait that defines all the type bounds a MMR client has to satisfy and defines some helper methods.

Provided Methods§

Source

fn first_mmr_block_num( &self, notification: &FinalityNotification<B>, ) -> Option<NumberFor<B>>

Get the block number where the mmr pallet was added to the runtime.

Implementors§

Source§

impl<B, BE, T> MmrClient<B, BE> for T
where B: Block, BE: Backend<B>, T: BlockchainEvents<B> + HeaderBackend<B> + HeaderMetadata<B> + ProvideRuntimeApi<B>, T::Api: MmrApi<B, MmrRootHash, NumberFor<B>>,