Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [".", "crates/sentrix-primitives", "crates/sentrix-wallet", "crates/se
# `version.workspace = true`. Same goes for edition/license/repository so
# they can't drift across crates.
[workspace.package]
version = "2.2.37"
version = "2.2.38"
edition = "2024"
license = "BUSL-1.1"
repository = "https://github.com/sentrix-labs/sentrix"
Expand Down
9 changes: 9 additions & 0 deletions crates/sentrix-storage/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ pub const TABLE_TRIE_ROOTS: &str = "trie_roots";
/// Trie committed roots: height (u64 BE) → root_hash (32 bytes)
pub const TABLE_TRIE_COMMITTED: &str = "trie_committed_roots";

/// Trie GC tombstones: key = discriminator byte (b'n' nodes / b'v' values) ||
/// hash (32 bytes) → tombstone version (u64 BE). Generational GC: the prune
/// tombstones an orphan here instead of deleting it, and only deletes on a
/// LATER prune if it's still orphan. A hash committed during a long prune
/// (the #791 race) is tombstoned that cycle but back in the live-set next
/// cycle, so it's never deleted. Deletion lags one prune interval.
pub const TABLE_TRIE_TOMBSTONES: &str = "trie_tombstones";

/// Chain metadata: key string → value bytes (height, hash_index_complete, etc.)
pub const TABLE_META: &str = "meta";

Expand Down Expand Up @@ -55,6 +63,7 @@ pub const ALL_TABLES: &[&str] = &[
TABLE_TRIE_VALUES,
TABLE_TRIE_ROOTS,
TABLE_TRIE_COMMITTED,
TABLE_TRIE_TOMBSTONES,
TABLE_META,
TABLE_LOGS,
TABLE_BLOOM,
Expand Down
Loading
Loading