Trait diem_vm::VMValidator
source · pub trait VMValidator {
// Required method
fn validate_transaction(
&self,
transaction: SignedTransaction,
state_view: &dyn StateView
) -> VMValidatorResult;
}
Expand description
This trait describes the VM’s validation interfaces.
Required Methods§
sourcefn validate_transaction(
&self,
transaction: SignedTransaction,
state_view: &dyn StateView
) -> VMValidatorResult
fn validate_transaction( &self, transaction: SignedTransaction, state_view: &dyn StateView ) -> VMValidatorResult
Executes the prologue of the Diem Account and verifies that the transaction is valid.