Trait mmr_gadget::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§
sourcefn first_mmr_block_num(
&self,
notification: &FinalityNotification<B>
) -> Option<NumberFor<B>>
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.