Expand description
State persistence layer for QuDAG protocol
This module provides a comprehensive persistence layer for storing and retrieving DAG vertices, peer information, and dark domain records using different storage backends.
Structs§
- Checkpoint
Info - Checkpoint information for state snapshots
- DagState
- DAG-specific state information
- File
State Store - File-based storage implementation using JSON files
- Memory
State Store - In-memory storage implementation for testing
- Peer
Info - Information about a peer for persistence
- Persisted
DagState - Persisted DAG state for protocol operations
- Persistent
Node Runner - Enhanced NodeRunner with persistence integration
- Startup
State - State loaded on node startup
- Storage
Stats - Storage statistics
- Voting
Record - Voting record for consensus tracking
Enums§
- Consensus
Status - Consensus status for a vertex
- Persistence
Error - Errors that can occur during persistence operations
Constants§
- CURRENT_
STATE_ VERSION - Current state version for compatibility
Traits§
- State
Persistence - State persistence trait alias
- State
Provider - State provider trait for node integration
- State
Store - Abstract storage trait for different persistence backends
Type Aliases§
- Memory
Backend - Backend storage interface alias
- Persisted
State - General persisted state wrapper
- Persistence
Manager - Persistence manager for coordinating storage operations
- Result
- Result type for persistence operations
- Sqlite
Backend