Interface MutableWorldState
- All Superinterfaces:
AutoCloseable, org.hyperledger.besu.evm.worldstate.MutableWorldView, org.hyperledger.besu.evm.worldstate.WorldState, org.hyperledger.besu.evm.worldstate.WorldView
public interface MutableWorldState
extends org.hyperledger.besu.evm.worldstate.WorldState, org.hyperledger.besu.evm.worldstate.MutableWorldView
Represents a mutable view of the Ethereum world state, allowing queries and modifications to
account balances, nonces, code, and storage.
Implementations manage the state root hash and persist changes to underlying storage through
StateRootCommitter.
Extends both WorldState and MutableWorldView.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hyperledger.besu.evm.worldstate.WorldState
org.hyperledger.besu.evm.worldstate.WorldState.StreamableAccount -
Field Summary
Fields inherited from interface org.hyperledger.besu.evm.worldstate.WorldView
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault MutableWorldStateDisables the trie structure used for storage indexing.default MutableWorldStateFreezes the storage by preventing any further changes to itdefault voidpersist(BlockHeader blockHeader) Persist accumulated changes to underlying storage.voidpersist(BlockHeader blockHeader, StateRootCommitter committer) Persist accumulated changes to underlying storage.Methods inherited from interface org.hyperledger.besu.evm.worldstate.MutableWorldView
updaterMethods inherited from interface org.hyperledger.besu.evm.worldstate.WorldState
close, frontierRootHash, rootHash, streamAccountsMethods inherited from interface org.hyperledger.besu.evm.worldstate.WorldView
get
-
Method Details
-
persist
Persist accumulated changes to underlying storage.- Parameters:
blockHeader- If persisting for an imported block, the block hash of the world state this represents. If this does not represent a forward transition from one block to the next `null` should be passed in.committer- An implementation ofStateRootCommitterresponsible for recomputing the state root and committing the state changes to storage.
-
persist
Persist accumulated changes to underlying storage.- Parameters:
blockHeader- If persisting for an imported block, the block hash of the world state this represents. If this does not represent a forward transition from one block to the next `null` should be passed in.
-
freezeStorage
Freezes the storage by preventing any further changes to it- Returns:
- this instance
-
disableTrie
Disables the trie structure used for storage indexing.- Returns:
- this instance
-