referrerpolicy=no-referrer-when-downgrade

Trait sp_consensus_beefy::PayloadProvider

source ·
pub trait PayloadProvider<B: Block> {
    // Required method
    fn payload(&self, header: &B::Header) -> Option<Payload>;
}
Expand description

Trait for custom BEEFY payload providers.

Required Methods§

source

fn payload(&self, header: &B::Header) -> Option<Payload>

Provide BEEFY payload if available for header.

Implementors§

source§

impl<B, R> PayloadProvider<B> for MmrRootProvider<B, R>
where B: Block, R: ProvideRuntimeApi<B>, R::Api: MmrApi<B, MmrRootHash, NumberFor<B>>,