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.
- Block
Chain Context - Blockchain context which keeps a token of validity so users will know when the data is no longer valid.
- Block
Chain Context Service - The blockchain context service.
- Context
Config - Config for the context service.
- Data
NoLonger Valid - NewBlock
Data - Data needed from a new block to add it to the context cache.
- RawBlock
Chain Context - Raw blockchain context, gotten from
BlockChainContext
. This data may turn invalid so is not ok to keep around. You should keep aroundBlockChainContext
instead. - Validity
Token - A token representing if a piece of data is valid.
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.