Skip to main content

Module store

Module store 

Source

Structs§

AccountProof
AccountUpdatesList
Collection of account state changes from block execution.
AncestorIterator
StorageSlotProof
Store
Main storage interface for the ethrex client.
StoreConfig
Tunable configuration for Store::new_with_config and related constructors.
StoreMetadata
UpdateBatch
Batch of updates to apply to the store atomically.

Enums§

EngineType
Storage backend type selection.

Constants§

DEFAULT_ROCKSDB_BLOCK_CACHE_SIZE_BYTES
Default size in bytes of the RocksDB shared block cache: 12 GiB.
MAX_WITNESSES
Maximum number of execution witnesses to keep in the database

Functions§

has_valid_db
Checks whether a valid (or migratable) database exists at the given path by looking for a metadata.json file with a schema version between 1 and STORE_SCHEMA_VERSION (inclusive).
hash_address
hash_key
hash_key_fixed
read_chain_id_from_db
Reads the chain ID from an existing database without performing a full store initialization. Returns None if the database doesn’t exist or the chain config can’t be read. Always returns None when compiled without the rocksdb feature.
receipt_key
Builds a fixed-width RECEIPTS key: block_hash (32B) || index (8B BE).
tx_locations_merge
Merge function for the TRANSACTION_LOCATIONS column family.

Type Aliases§

StorageTrieNodes
Storage trie nodes grouped by account address hash.
StorageUpdates
Storage trie updates grouped by account address hash.