Trait diem_vm::VMExecutor

source ·
pub trait VMExecutor: Send + Sync {
    // Required method
    fn execute_block(
        transactions: Vec<Transaction>,
        state_view: &dyn StateView
    ) -> 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 ) -> Result<Vec<TransactionOutput>, VMStatus>

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

Implementors§