Skip to main content

Module tree

Module tree 

Source
Expand description

Support for interacting with the blockchain tree.

Re-exports§

pub use payload_validator::BasicEngineValidator;
pub use payload_validator::EngineValidator;
pub use payload_processor::*;

Modules§

error
Internal errors for the tree module.
instrumented_state
Implements a state provider that tracks latency metrics.
payload_processor
Entrypoint for payload processing.
payload_validator
Types and traits for validating blocks and payloads.
precompile_cache
Contains a precompile cache backed by schnellru::LruMap (LRU by length).
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.
CachedStateMetrics
Metrics for the cached state provider, showing hits / misses / size for each cache.
CachedStateProvider
A wrapper of a state provider and a shared cache.
EngineApiMetrics
Metrics for the EngineApi.
EngineApiTreeHandler
The engine API tree handler implementation.
EngineApiTreeState
Tracks the state of the engine api internals.
ExecutionCache
Execution cache used during block processing.
InvalidHeaderCache
Keeps track of invalid headers.
PersistenceState
The state of the persistence task.
SavedCache
A saved cache that has been used for executing a specific block, which has been updated for its execution.
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.
TreeAction
The actions that can be performed on the tree.
TreeEvent
Events that are triggered by Tree Chain