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§
- __
private - difficulty
- Difficulty Module
- hardforks
- rx_vms
- RandomX VM Cache
- weight
- Block Weights
Structs§
- AltChain
Context Cache - The context cache of an alternative chain.
- AltChain
Request Token - A token that should be hard to create from outside this crate.
- Blockchain
Context - Raw blockchain context, gotten from
BlockchainContext. This data may turn invalid so is not ok to keep around. You should keep aroundBlockchainContextinstead. - Blockchain
Context Service - The blockchain context service.
- Context
Config - Config for the context service.
- NewBlock
Data - Data needed from a new block to add it to the context cache.
Enums§
- Block
Chain Context Request - A request to the blockchain context cache.
- Block
Chain Context Response - Context
Cache Error
Constants§
Functions§
- initialize_
blockchain_ context - Initialize the blockchain context service.