Trait executor::vm::VMExecutor

source ·
pub trait VMExecutor: Send {
    // Required method
    fn execute_block(
        transactions: Vec<Transaction>,
        state_view: &dyn StateView,
        catch_up_mode: bool
    ) -> Result<Vec<TransactionOutput>, VMStatus>;
}
Expand description

This trait describes the VM’s execution interface.

Required Methods§

source

fn execute_block( transactions: Vec<Transaction>, state_view: &dyn StateView, catch_up_mode: bool ) -> Result<Vec<TransactionOutput>, VMStatus>

Executes a block of transactions and returns output for each one of them.

Object Safety§

This trait is not object safe.

Implementors§