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§
Sourcetype Externalities: ?Sized
type Externalities: ?Sized
Externalities type
Required Methods§
Sourcefn execute_block(
&self,
block: &Self::Block,
state: &mut Self::Externalities,
) -> Result<(), Self::Error>
fn execute_block( &self, block: &Self::Block, state: &mut Self::Externalities, ) -> Result<(), Self::Error>
Execute the block via a block object and given state.