Crate aigc_chain
source ·Expand description
The block chain itself, validates and accepts new blocks, handles reorgs.
Re-exports
pub use crate::store::ChainStore;
pub use crate::types::BlockStatus;
pub use crate::types::ChainAdapter;
pub use crate::types::Options;
pub use crate::types::SyncState;
pub use crate::types::SyncStatus;
pub use crate::types::Tip;
pub use crate::types::TxHashsetDownloadStats;
pub use crate::types::TxHashsetWriteStatus;
Modules
- Implements “linked list” storage primitive for lmdb index supporting multiple entries.
- Implementation of the chain block acceptance (or refusal) pipeline.
- Implements storage primitives required by the chain
- Utility structs to handle the 3 hashtrees (output, range proof, kernel) more conveniently and transactionally.
- Base types that the block chain pipeline requires.
Structs
- Facade to the blockchain block processing pipeline and storage. Provides the current view of the TxHashSet according to the chain state. Also maintains locking for the pipeline to avoid conflicting processing.
- Error definition
Enums
- Chain error definitions
Constants
- Orphan pool size is limited by MAX_ORPHAN_SIZE