sigil-storage · rocksdb_store
Source declarations, signatures and documentation for rocksdb_store.
Source: sigil/node/sigil-storage/src/rocksdb_store.rs. SHA-256: 12ddad1ad95b5e91078e8cd56def9da49b9052526cf9a70ca919d50b985b0448.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
Module condition:
#[cfg(feature = "legacy-rocksdb-import")]rocksdb_store::RocksDbBlockStore
Persistent block store backed by RocksDB.
Key schemes:
b:<height_be_bytes>-> serde_json-encoded [Block]h:<hash_bytes>-><height_be_bytes>(hash-to-height index)meta:latest-><height_be_bytes>(latest finalized height)
#[cfg(feature = "legacy-rocksdb-import")]
pub struct RocksDbBlockStore {
}Source line: 148.
rocksdb_store::RocksDbBlockStore::open
Open (or create) a RocksDB block store at the given path.
#[cfg(feature = "legacy-rocksdb-import")]
pub fn open(path: &Path) -> Result<Self, StorageError>;Source line: 154.
rocksdb_store::RocksDbBlockStore::open_read_only
Open an existing RocksDB block store read-only.
This is only for one-shot legacy import and repair tooling. Production node runtime must not write to the deprecated RocksDB store while migrating to AkashaKV.
#[cfg(feature = "legacy-rocksdb-import")]
pub fn open_read_only(path: &Path) -> Result<Self, StorageError>;Source line: 171.
rocksdb_store::RocksDbStateStore
Persistent state store backed by RocksDB.
Key scheme: <partition>\xFF<key> where \xFF acts as a separator.
This allows efficient prefix iteration for both partition-level and
key-level scans.
#[cfg(feature = "legacy-rocksdb-import")]
pub struct RocksDbStateStore {
}Source line: 339.
rocksdb_store::RocksDbStateStore::open
Open (or create) a RocksDB state store at the given path.
#[cfg(feature = "legacy-rocksdb-import")]
pub fn open(path: &Path) -> Result<Self, StorageError>;Source line: 345.
rocksdb_store::RocksDbReceiptStore
Persistent receipt store backed by RocksDB.
Key schemes:
t:<tx_hash_bytes>-> serde_json-encoded [Receipt]b:<height_be_bytes>:<tx_index_be_bytes>-><tx_hash_bytes>
#[cfg(feature = "legacy-rocksdb-import")]
pub struct RocksDbReceiptStore {
}Source line: 466.
rocksdb_store::RocksDbReceiptStore::open
Open (or create) a RocksDB receipt store at the given path.
#[cfg(feature = "legacy-rocksdb-import")]
pub fn open(path: &Path) -> Result<Self, StorageError>;Source line: 472.