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: &BlockId<Block>,
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§
sourcefn new_block_at<R: Into<RecordProof>>(
&self,
parent: &BlockId<Block>,
inherent_digests: Digest,
record_proof: R,
) -> Result<BlockBuilder<'_, Block, RA, B>>
fn new_block_at<R: Into<RecordProof>>( &self, parent: &BlockId<Block>, 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.
sourcefn new_block(
&self,
inherent_digests: Digest,
) -> Result<BlockBuilder<'_, Block, RA, B>>
fn new_block( &self, inherent_digests: Digest, ) -> Result<BlockBuilder<'_, Block, RA, B>>
Create a new block, built on the head of the chain.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.