Interface WorldStatePreimageStorage
public interface WorldStatePreimageStorage
Stores and retrieves preimage mappings for the Ethereum world-state trie.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA write transaction for batching preimage insertions into world state preimage storage. -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.hyperledger.besu.datatypes.Address> getAccountTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey) Returns the account address preimage for the given account trie keyOptional<org.apache.tuweni.units.bigints.UInt256> getStorageTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey) Returns the storage slot index preimage for the given storage trie key.updater()Creates and returns a newWorldStatePreimageStorage.Updaterfor batching preimage write operations.
-
Method Details
-
getStorageTrieKeyPreimage
Optional<org.apache.tuweni.units.bigints.UInt256> getStorageTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey) Returns the storage slot index preimage for the given storage trie key.- Parameters:
trieKey- whose associated with storage index being retrieved- Returns:
- an
Optionalcontaining theUInt256slot index, or empty if not found
-
getAccountTrieKeyPreimage
Optional<org.hyperledger.besu.datatypes.Address> getAccountTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey) Returns the account address preimage for the given account trie key- Parameters:
trieKey- whose associated with theAddressis being retrieved- Returns:
- an
Optionalcontaining theAddress, or empty if not found
-
updater
WorldStatePreimageStorage.Updater updater()Creates and returns a newWorldStatePreimageStorage.Updaterfor batching preimage write operations.- Returns:
- a new
WorldStatePreimageStorage.Updaterscoped to a single write transaction
-