EEVM.Transaction.Validator (eevm v0.1.0)

Copy Markdown View Source

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

validate(tx, db, block)

Validate under the default hardfork; see validate/4.

validate(tx, db, block, hardfork)

Run the pre-execution checks in order and return the first failure. Error reasons are listed in EEVM.Error.