Trait fc_rpc::pending::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§
sourcefn create_digest(
&self,
parent: &B::Header,
data: &InherentData
) -> Result<Digest, Error>
fn create_digest( &self, parent: &B::Header, data: &InherentData ) -> Result<Digest, Error>
Attempt to create a consensus digest.