Transaction pre-execution validation.
Performs envelope and sender checks in deterministic order against current
state and block context, returning :ok or the first {:error, reason}.
Summary
Functions
Validate under the default hardfork; see validate/4.
Run the pre-execution checks in order and return the first failure.
Error reasons are listed in EEVM.Error.
Functions
@spec validate( EEVM.Context.Transaction.t(), EEVM.Database.t(), EEVM.Context.Block.t() ) :: :ok | {:error, EEVM.Error.transaction_validation_error()}
Validate under the default hardfork; see validate/4.
@spec validate( EEVM.Context.Transaction.t(), EEVM.Database.t(), EEVM.Context.Block.t(), EEVM.HardforkConfig.t() ) :: :ok | {:error, EEVM.Error.transaction_validation_error()}
Run the pre-execution checks in order and return the first failure.
Error reasons are listed in EEVM.Error.