pub trait BlockBuilderProvider<B, Block, RA>where
    Block: BlockT,
    B: Backend<Block>,
    Self: Sized,
    RA: ProvideRuntimeApi<Block>,{
    // Required methods
    fn new_block_at<R: Into<RecordProof>>(
        &self,
        parent: Block::Hash,
        inherent_digests: Digest,
        record_proof: R
    ) -> Result<BlockBuilder<'_, Block, RA, B>>;
    fn new_block(
        &self,
        inherent_digests: Digest
    ) -> Result<BlockBuilder<'_, Block, RA, B>>;
}
Expand description

Block builder provider

Required Methods§

source

fn new_block_at<R: Into<RecordProof>>( &self, parent: Block::Hash, inherent_digests: Digest, record_proof: R ) -> Result<BlockBuilder<'_, Block, RA, B>>

Create a new block, built on top of parent.

When proof recording is enabled, all accessed trie nodes are saved. These recorded trie nodes can be used by a third party to proof the output of this block builder without having access to the full storage.

source

fn new_block( &self, inherent_digests: Digest ) -> Result<BlockBuilder<'_, Block, RA, B>>

Create a new block, built on the head of the chain.

Implementors§