Trait BlockExecutor

Source
pub trait BlockExecutor {
    type Error: Error + 'static;
    type Block: Block;
    type Externalities: ?Sized;

    // Required method
    fn execute_block(
        &self,
        block: &Self::Block,
        state: &mut Self::Externalities,
    ) -> Result<(), Self::Error>;
}
Expand description

Block executor

Required Associated Types§

Source

type Error: Error + 'static

Error type

Source

type Block: Block

Block type

Source

type Externalities: ?Sized

Externalities type

Required Methods§

Source

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

Execute the block via a block object and given state.

Implementors§