referrerpolicy=no-referrer-when-downgrade

Type Alias bp_beefy::BeefyMmrLeafOf

source ·
pub type BeefyMmrLeafOf<C> = MmrLeaf<BlockNumberOf<C>, HashOf<C>, MmrHashOf<C>, BeefyMmrLeafExtraOf<C>>;
Expand description

Actual type of leafs in the BEEFY MMR.

Aliased Type§

struct BeefyMmrLeafOf<C> {
    pub version: MmrLeafVersion,
    pub parent_number_and_hash: (<C as Chain>::BlockNumber, <C as Chain>::Hash),
    pub beefy_next_authority_set: BeefyAuthoritySet<<C as ChainWithBeefy>::MmrHash>,
    pub leaf_extra: <C as ChainWithBeefy>::BeefyMmrLeafExtra,
}

Fields§

§version: MmrLeafVersion

Version of the leaf format.

Can be used to enable future format migrations and compatibility. See [MmrLeafVersion] documentation for details.

§parent_number_and_hash: (<C as Chain>::BlockNumber, <C as Chain>::Hash)

Current block parent number and hash.

§beefy_next_authority_set: BeefyAuthoritySet<<C as ChainWithBeefy>::MmrHash>

A merkle root of the next BEEFY authority set.

§leaf_extra: <C as ChainWithBeefy>::BeefyMmrLeafExtra

Arbitrary extra leaf data to be used by downstream pallets to include custom data in the [MmrLeaf]