Expand description
§Blockchain Context
This crate contains a service to get cached context from the blockchain: BlockChainContext
.
This is used during contextual validation, this does not have all the data for contextual validation
(outputs) for that you will need a Database
.
Re-exports§
pub use difficulty::DifficultyCacheConfig;
pub use hardforks::HardForkConfig;
pub use weight::BlockWeightsCacheConfig;
Modules§
- Difficulty Module
RandomX
VM Cache- Block Weights
Structs§
- The context cache of an alternative chain.
- A token that should be hard to create from outside this crate.
- Blockchain context which keeps a token of validity so users will know when the data is no longer valid.
- The blockchain context service.
- Config for the context service.
- Data needed from a new block to add it to the context cache.
- Raw blockchain context, gotten from
BlockChainContext
. This data may turn invalid so is not ok to keep around. You should keep aroundBlockChainContext
instead. - A token representing if a piece of data is valid.
Enums§
- A request to the blockchain context cache.
Constants§
Functions§
- Initialize the blockchain context service.