Skip to main content

Crate reth_trie_db

Crate reth_trie_db 

Source
Expand description

An integration of reth-trie with reth-db.

Macros§

with_adapter
Dispatches a trie operation using the correct TrieKeyAdapter based on storage settings.

Structs§

ChangesetCache
Thread-safe changeset cache.
DatabaseAccountTrieCursor
A cursor over the account trie.
DatabaseHashedAccountCursor
A struct wrapping database cursor over hashed accounts implementing [HashedCursor] for iterating over accounts.
DatabaseHashedCursorFactory
A struct wrapping database transaction that implements [HashedCursorFactory].
DatabaseHashedStorageCursor
The structure wrapping a database cursor for hashed storage and a target hashed address. Implements [HashedCursor] and [HashedStorageCursor] for iterating over hashed storage.
DatabaseStorageTrieCursor
A cursor over the storage tries stored in the database.
DatabaseTrieCursorFactory
Wrapper struct for database transaction implementing trie cursor factory trait.
LegacyKeyAdapter
Legacy (v1) nibble encoding: 1 nibble per byte, 65-byte subkeys.
PackedAccountsTrie
Packed-encoding view of the [AccountsTrie] table.
PackedKeyAdapter
Packed (v2) nibble encoding: 2 nibbles per byte, 33-byte subkeys.
PackedStoragesTrie
Packed-encoding view of the [StoragesTrie] table.
PendingChangesetGuard
Guard for a pending changeset computation.

Traits§

DatabaseHashedPostState
Extends [HashedPostStateSorted] with operations specific for working with a database transaction.
DatabaseProof
Extends [Proof] with operations specific for working with a database transaction.
DatabaseStateRoot
Extends [StateRoot] with operations specific for working with a database transaction.
DatabaseStorageProof
Extends [StorageProof] with operations specific for working with a database transaction.
DatabaseStorageRoot
Extends [StorageRoot] with operations specific for working with a database transaction.
StorageTrieEntryLike
Trait for storage trie entry types that carry a subkey and node.
TrieKeyAdapter
Trait abstracting nibble encoding for trie keys.
TrieTableAdapter
Helper trait to map a TrieKeyAdapter to the correct table types.

Functions§

compute_block_trie_changesets
Computes trie changesets for a block.
compute_block_trie_updates
Computes block trie updates using the changeset cache.
from_reverts_auto
Calls [HashedPostStateSorted::from_reverts].
hashed_storage_from_reverts_with_provider
Initializes [HashedStorage] from reverts using a provider.
load_prefix_sets_with_provider
Load prefix sets using a provider that implements [ChangeSetReader]. This function can read changesets from both static files and database.