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§
sourcefn init_polkadot_block_builder(&self) -> BlockBuilder<'_, Block, Client>
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.
sourcefn init_polkadot_block_builder_at(
&self,
hash: <Block as BlockT>::Hash,
) -> BlockBuilder<'_, Block, Client>
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.