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§
- Block
Buffer - Contains the tree of pending blocks that cannot be executed due to missing parent. It allows to store unconnected blocks for potential future inclusion.
- Cached
State Metrics - Metrics for the cached state provider, showing hits / misses / size for each cache.
- Cached
State Provider - A wrapper of a state provider and a shared cache.
- Engine
ApiMetrics - Metrics for the
EngineApi. - Engine
ApiTree Handler - The engine API tree handler implementation.
- Engine
ApiTree State - Tracks the state of the engine api internals.
- Execution
Cache - Execution cache used during block processing.
- Invalid
Header Cache - Keeps track of invalid headers.
- Persistence
State - The state of the persistence task.
- Saved
Cache - A saved cache that has been used for executing a specific block, which has been updated for its execution.
- State
Provider Builder - A builder for creating state providers that can be used across threads.
- Tree
Config - The configuration of the engine tree.
- Tree
Outcome - The outcome of a tree operation.
Enums§
- Block
Status - Block inclusion can be valid, accepted, or invalid. Invalid blocks are returned as an error variant.
- Insert
Payload Ok - How a payload was inserted if it was valid.
- Tree
Action - The actions that can be performed on the tree.
- Tree
Event - Events that are triggered by Tree Chain