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§
- 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.
- Engine
ApiTree Handler - The engine API tree handler implementation.
- Engine
ApiTree State - Tracks the state of the engine api internals.
- Invalid
Block Hooks - Multiple
InvalidBlockHook
s that are executed in order. - Invalid
Header Cache - Keeps track of invalid headers.
- Noop
Invalid Block Hook - A no-op
InvalidBlockHook
that does nothing. - Payload
Handle - Handle to all the spawned tasks.
- Payload
Processor - Entrypoint for executing the payload.
- Persistence
State - The state of the persistence task.
- 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.
- Persisting
Kind - Whether or not the blocks are currently persisting and the input block is a descendant.
- Tree
Action - The actions that can be performed on the tree.
- Tree
Event - Events that are triggered by Tree Chain
Traits§
- Invalid
Block Hook - An invalid block hook.