vendored

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EVMApplyTransaction

func EVMApplyTransaction(msg *Message, config *params.ChainConfig, author *common.Address, gp *GasPool, statedb *state.StateDB, blockNumber *big.Int, blockHash common.Hash, tx *types.Transaction, usedGas *uint64, evm *vm.EVM) (*types.Receipt, *ExecutionResult, error)

EVMApplyTransaction is a vendored version of go-ethereum's unexported applyTransaction method (not to be confused with the exported method ApplyTransaction). This method was vendored to simply be exposed/exported, so it can be used by the test chain. This method offers greater control of parameters over the exposed ApplyTransaction method. Its purpose is to take a message (internal transaction) and apply state transition updates to our current state as if we had just previously received and validated a transaction which the message was derived from. This executes on an underlying EVM and returns a transaction receipt, or an error if one occurs. Additional changes: - Exposed core.ExecutionResult as a return value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL