Module storage

Module storage 

Source
Expand description

Storage abstraction for inner Merkle tree roots.

The RewardMerkleTreeStorage trait allows pluggable storage backends (memory, disk, database). CachedInMemoryStorage provides fast in-memory storage with single-entry caching.

Structs§

CachedInMemoryStorage
In-memory storage with single-entry cache.
InMemoryState 🔒
Internal state guarded by a single RwLock in CachedInMemoryStorage.
OuterIndex
Outer tree index (0-15) derived from account address high nibble.

Traits§

RewardMerkleTreeStorage
Storage abstraction for inner Merkle tree roots.

Functions§

collect_merkle_leaves 🔒
Recursively traverses a merkle tree node and collects all leaf entries.

Type Aliases§

InnerRewardMerkleTreeRoot
Root node of a 156-bit inner Merkle tree, wrapped in Arc to avoid deep clones when the jellyfish internals return a new root after an update.