Interface WorldStateKeyValueStorage
public interface WorldStateKeyValueStorage
Storage interface for Ethereum world state data backed by a key-value store.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCallback interface for observing trie node insertions into world state storage.static interfaceA write transaction for batching mutations to world state storage. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all entries from this world state storage.Returns the storage format used by this world state storage.updater()Creates and returns a newWorldStateKeyValueStorage.Updaterfor batching write operations.
-
Method Details
-
getDataStorageFormat
DataStorageFormat getDataStorageFormat()Returns the storage format used by this world state storage.- Returns:
- the
DataStorageFormatof the underlying storage
-
updater
WorldStateKeyValueStorage.Updater updater()Creates and returns a newWorldStateKeyValueStorage.Updaterfor batching write operations.- Returns:
- a new
WorldStateKeyValueStorage.Updaterscoped to a single write transaction
-
clear
void clear()Removes all entries from this world state storage.
-