pub trait InherentProvider<B: BlockT> {
    type Err;

    // Required method
    fn get_inherent_providers_and_pre_digest(
        &self,
        maybe_parent_info: Option<(InherentData, Digest)>,
        parent_header: B::Header,
        ext: Arc<Mutex<TestExternalities<HashingFor<B>>>>,
    ) -> Result<(Box<dyn InherentDataProvider>, Vec<DigestItem>), Self::Err>;
}
Expand description

Trait for providing the inherent data and digest items for block construction.

Required Associated Types§

Required Methods§

source

fn get_inherent_providers_and_pre_digest( &self, maybe_parent_info: Option<(InherentData, Digest)>, parent_header: B::Header, ext: Arc<Mutex<TestExternalities<HashingFor<B>>>>, ) -> Result<(Box<dyn InherentDataProvider>, Vec<DigestItem>), Self::Err>

Implementors§