Module block

Expand description

Block execution abstraction.

Modules§

calc
Helpers to perform common calculations.
state_changes
State changes that are not related to transactions.
system_calls
System contract call functions.

Structs§

BlockExecutionResult
The result of executing a block.
NoopHook
An OnStateHook that does nothing.
SystemCaller
An ephemeral helper type for executing system calls.

Enums§

BlockExecutionError
BlockExecutor Errors
BlockValidationError
Block validation error.
InternalBlockExecutionError
Internal (i.e., not validation or consensus related) BlockExecutor Errors
StateChangePostBlockSource
Source of the post-block state change
StateChangePreBlockSource
Source of the pre-block state change
StateChangeSource
Source of the state change

Traits§

BlockExecutor
A type that knows how to execute a single block.
BlockExecutorFactory
A factory that can create BlockExecutors.
BlockExecutorFor
A helper trait encapsulating the constraints on BlockExecutor produced by the BlockExecutorFactory to avoid duplicating them in every implementation.
ExecutableTx
Helper trait to encapsulate requirements for a type to be used as input for BlockExecutor.
OnStateHook
A hook that is called after each state change.