Expand description
MDBX table definitions and backend for cold storage.
This crate provides table definitions for storing historical blockchain data in MDBX. It defines 9 tables:
§Primary Data Tables
ColdHeaders: Block headers indexed by block number.ColdTransactions: Transactions indexed by (block number, tx index).ColdTxSenders: Transaction senders indexed by (block number, tx index).ColdReceipts: Receipts indexed by (block number, tx index).ColdSignetEvents: Signet events indexed by (block number, event index).ColdZenithHeaders: Zenith headers indexed by block number.
§Index Tables
ColdBlockHashIndex: Maps block hash to block number.ColdTxHashIndex: Maps transaction hash to (block number, tx index).
§Feature Flags
test-utils: Propagatessignet-cold/test-utilsfor conformance testing against the MDBX backend.
Structs§
- Cold
Block Hash Index - Block hash to block number index.
- Cold
Headers - Headers indexed by block number.
- Cold
Receipts - Receipts indexed by (block number, tx index).
- Cold
Signet Events - Signet events indexed by (block number, event index).
- Cold
Transactions - Transactions indexed by (block number, tx index).
- Cold
TxHash Index - Transaction hash to (block number, tx index) index.
- Cold
TxSenders - Transaction senders indexed by (block number, tx index).
- Cold
Zenith Headers - Zenith headers indexed by block number.
- Database
Arguments - Arguments for database initialization.
- Mdbx
Cold Backend - MDBX-based cold storage backend.
- Mdbx
Connector - Connector for MDBX storage (both hot and cold).
Enums§
- Database
EnvKind - Environment used when opening a MDBX environment. Read-only or Read-write.
- Mdbx
Cold Error - Errors that can occur in cold MDBX storage operations.
- Mdbx
Connector Error - Errors that can occur when initializing MDBX connectors.