referrerpolicy=no-referrer-when-downgrade

Trait pallet_mmr::BlockHashProvider

source ·
pub trait BlockHashProvider<BlockNumber, BlockHash> {
    // Required method
    fn block_hash(block_number: BlockNumber) -> BlockHash;
}
Expand description

Block hash provider for a given block number.

Required Methods§

source

fn block_hash(block_number: BlockNumber) -> BlockHash

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Config> BlockHashProvider<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number, <T as Config>::Hash> for DefaultBlockHashProvider<T>