pub trait ConsensusDataProvider<B: BlockT>: Send + Sync {
    // Required method
    fn create_digest(
        &self,
        parent: &B::Header,
        data: &InherentData
    ) -> Result<Digest, Error>;
}
Expand description

Consensus data provider, pending api uses this trait object for authoring blocks valid for any runtime.

Required Methods§

source

fn create_digest( &self, parent: &B::Header, data: &InherentData ) -> Result<Digest, Error>

Attempt to create a consensus digest.

Implementations on Foreign Types§

source§

impl<B: BlockT> ConsensusDataProvider<B> for ()

source§

fn create_digest( &self, _: &B::Header, _: &InherentData ) -> Result<Digest, Error>

Implementors§