Skip to main content

Module block

Module block 

Available on crate feature evm only.
Expand description

Block execution abstraction.

Modules§

calc
Helpers to perform common calculations.
state
State database abstraction.

Structs§

BlockExecutionResult
The result of executing a block.
GasOutput
Gas used by a transaction, split into regular and state gas components.
NoopHook
An OnStateHook that does nothing.
SystemCaller
An ephemeral helper type for executing system calls.

Enums§

BlockExecutionError
BlockExecutor Errors
BlockValidationError
Block validation error.
CommitChanges
Marks whether transaction should be committed into block executor’s state.
InternalBlockExecutionError
Internal (i.e., not validation or consensus related) BlockExecutor Errors

Traits§

BalIndexedDatabase
Database that tracks the current block-level access list (BAL) index from EIP-7928.
BlockExecutor
A type that knows how to execute a single block.
BlockExecutorFactory
A factory that can create BlockExecutors.
ExecutableTx
Alias for the ExecutableTxParts trait with types associated with the given BlockExecutor.
ExecutableTxParts
Helper trait to encapsulate requirements for a type to be used as input for BlockExecutor.
OnStateHook
A hook that is called when state changes are committed.
StateDB
Alias trait for Database and DatabaseCommit.
TxResult
A result of transaction execution.

Type Aliases§

BlockExecutorFor
A helper trait encapsulating the constraints on BlockExecutor produced by the BlockExecutorFactory to avoid duplicating them in every implementation.