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§
- Cached
InMemory Storage - In-memory storage with single-entry cache.
- InMemory
State 🔒 - Internal state guarded by a single
RwLockinCachedInMemoryStorage. - Outer
Index - Outer tree index (0-15) derived from account address high nibble.
Traits§
- Reward
Merkle Tree Storage - Storage abstraction for inner Merkle tree roots.
Functions§
- collect_
merkle_ 🔒leaves - Recursively traverses a merkle tree node and collects all leaf entries.
Type Aliases§
- Inner
Reward Merkle Tree Root - Root node of a 156-bit inner Merkle tree, wrapped in
Arcto avoid deep clones when the jellyfish internals return a new root after an update.