[][src]Trait blockchain_core::SimpleBuilderExecutor

pub trait SimpleBuilderExecutor: BlockExecutor {
    type BuildBlock;
    type Inherent;
    type Extrinsic;
    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>; }

Builder executor

Associated Types

type BuildBlock

Build block type

type Inherent

Inherent

type Extrinsic

Extrinsic

Loading content...

Required methods

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.

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

Apply extrinsic to a given block.

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

Finalize a block.

Loading content...

Implementors

Loading content...