Module tree

Source
Expand description

Support for interacting with the blockchain tree.

Modules§

error
Internal errors for the tree module.
executor
Executor for mixed I/O and CPU workloads.
multiproof
Multiproof task related functionality.
precompile_cache
Contains a precompile cache that is backed by a moka cache.
prewarm
Caching and prewarming related functionality.
sparse_trie
Sparse Trie task related functionality.
state
Functionality related to tree state.

Structs§

BlockBuffer
Contains the tree of pending blocks that cannot be executed due to missing parent. It allows to store unconnected blocks for potential future inclusion.
EngineApiTreeHandler
The engine API tree handler implementation.
EngineApiTreeState
Tracks the state of the engine api internals.
InvalidBlockHooks
Multiple InvalidBlockHooks that are executed in order.
InvalidHeaderCache
Keeps track of invalid headers.
NoopInvalidBlockHook
A no-op InvalidBlockHook that does nothing.
PayloadHandle
Handle to all the spawned tasks.
PayloadProcessor
Entrypoint for executing the payload.
PersistenceState
The state of the persistence task.
StateProviderBuilder
A builder for creating state providers that can be used across threads.
TreeConfig
The configuration of the engine tree.
TreeOutcome
The outcome of a tree operation.

Enums§

BlockStatus
Block inclusion can be valid, accepted, or invalid. Invalid blocks are returned as an error variant.
InsertPayloadOk
How a payload was inserted if it was valid.
PersistingKind
Whether or not the blocks are currently persisting and the input block is a descendant.
TreeAction
The actions that can be performed on the tree.
TreeEvent
Events that are triggered by Tree Chain

Traits§

InvalidBlockHook
An invalid block hook.