referrerpolicy=no-referrer-when-downgrade
pub trait InitPolkadotBlockBuilder {
    // Required methods
    fn init_polkadot_block_builder(&self) -> BlockBuilder<'_, Block, Client>;
    fn init_polkadot_block_builder_at(
        &self,
        hash: <Block as BlockT>::Hash,
    ) -> BlockBuilder<'_, Block, Client>;
}
Expand description

An extension for the test client to initialize a Polkadot specific block builder.

Required Methods§

source

fn init_polkadot_block_builder(&self) -> BlockBuilder<'_, Block, Client>

Init a Polkadot specific block builder that works for the test runtime.

This will automatically create and push the inherents for you to make the block valid for the test runtime.

source

fn init_polkadot_block_builder_at( &self, hash: <Block as BlockT>::Hash, ) -> BlockBuilder<'_, Block, Client>

Init a Polkadot specific block builder at a specific block that works for the test runtime.

Same as InitPolkadotBlockBuilder::init_polkadot_block_builder besides that it takes a Hash to say which should be the parent block of the block that is being build.

Implementors§