pub trait SimpleBuilderExecutor: BlockExecutor {
type BuildBlock;
type Inherent;
type Extrinsic;
// Required methods
fn initialize_block(
&self,
parent_block: &Self::Block,
state: &mut Self::Externalities,
inherent: Self::Inherent,
) -> Result<Self::BuildBlock, Self::Error>;
fn apply_extrinsic(
&self,
block: &mut Self::BuildBlock,
extrinsic: Self::Extrinsic,
state: &mut Self::Externalities,
) -> Result<(), Self::Error>;
fn finalize_block(
&self,
block: &mut Self::BuildBlock,
state: &mut Self::Externalities,
) -> Result<(), Self::Error>;
}Expand description
Builder executor
Required Associated Types§
Required Methods§
Sourcefn initialize_block(
&self,
parent_block: &Self::Block,
state: &mut Self::Externalities,
inherent: Self::Inherent,
) -> Result<Self::BuildBlock, Self::Error>
fn initialize_block( &self, parent_block: &Self::Block, state: &mut Self::Externalities, inherent: Self::Inherent, ) -> Result<Self::BuildBlock, Self::Error>
Initialize a block from the parent block, and given state.
Sourcefn apply_extrinsic(
&self,
block: &mut Self::BuildBlock,
extrinsic: Self::Extrinsic,
state: &mut Self::Externalities,
) -> Result<(), Self::Error>
fn apply_extrinsic( &self, block: &mut Self::BuildBlock, extrinsic: Self::Extrinsic, state: &mut Self::Externalities, ) -> Result<(), Self::Error>
Apply extrinsic to a given block.
Sourcefn finalize_block(
&self,
block: &mut Self::BuildBlock,
state: &mut Self::Externalities,
) -> Result<(), Self::Error>
fn finalize_block( &self, block: &mut Self::BuildBlock, state: &mut Self::Externalities, ) -> Result<(), Self::Error>
Finalize a block.