referrerpolicy=no-referrer-when-downgrade

Trait ConsensusDataProvider

Source
pub trait ConsensusDataProvider<B: BlockT>: Send + Sync {
    // Required methods
    fn create_digest(
        &self,
        parent: &B::Header,
        inherents: &InherentData,
    ) -> Result<Digest, Error>;
    fn append_block_import(
        &self,
        parent: &B::Header,
        params: &mut BlockImportParams<B>,
        inherents: &InherentData,
        proof: StorageProof,
    ) -> Result<(), Error>;
}
Expand description

Consensus data provider, manual seal uses this trait object for authoring blocks valid for any runtime.

Required Methods§

Source

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

Attempt to create a consensus digest.

Source

fn append_block_import( &self, parent: &B::Header, params: &mut BlockImportParams<B>, inherents: &InherentData, proof: StorageProof, ) -> Result<(), Error>

Set up the necessary import params.

Implementors§