fc_rpc::pending

Trait ConsensusDataProvider

Source
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§