Module persistence

Source
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§

CheckpointInfo
Checkpoint information for state snapshots
DagState
DAG-specific state information
FileStateStore
File-based storage implementation using JSON files
MemoryStateStore
In-memory storage implementation for testing
PeerInfo
Information about a peer for persistence
PersistedDagState
Persisted DAG state for protocol operations
PersistentNodeRunner
Enhanced NodeRunner with persistence integration
StartupState
State loaded on node startup
StorageStats
Storage statistics
VotingRecord
Voting record for consensus tracking

Enums§

ConsensusStatus
Consensus status for a vertex
PersistenceError
Errors that can occur during persistence operations

Constants§

CURRENT_STATE_VERSION
Current state version for compatibility

Traits§

StatePersistence
State persistence trait alias
StateProvider
State provider trait for node integration
StateStore
Abstract storage trait for different persistence backends

Type Aliases§

MemoryBackend
Backend storage interface alias
PersistedState
General persisted state wrapper
PersistenceManager
Persistence manager for coordinating storage operations
Result
Result type for persistence operations
SqliteBackend