Trait SimpleBuilderExecutor

Source
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§

Source

type BuildBlock

Build block type

Source

type Inherent

Inherent

Source

type Extrinsic

Extrinsic

Required Methods§

Source

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.

Source

fn apply_extrinsic( &self, block: &mut Self::BuildBlock, extrinsic: Self::Extrinsic, state: &mut Self::Externalities, ) -> Result<(), Self::Error>

Apply extrinsic to a given block.

Source

fn finalize_block( &self, block: &mut Self::BuildBlock, state: &mut Self::Externalities, ) -> Result<(), Self::Error>

Finalize a block.

Implementors§