Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(stateUpgrade *params.StateUpgrade, chainConfig ChainContext, state StateDB, blockContext BlockContext) error
Configure applies the state upgrade to the state.
Types ¶
type BlockContext ¶
BlockContext defines an interface that provides information to a state upgrade about the block that activates the upgrade.
type ChainContext ¶
ChainContext defines an interface that provides information to a state upgrade about the chain configuration.
type StateDB ¶
type StateDB interface { SetState(common.Address, common.Hash, common.Hash) SetCode(common.Address, []byte) AddBalance(common.Address, *big.Int) GetNonce(common.Address) uint64 SetNonce(common.Address, uint64) CreateAccount(common.Address) Exist(common.Address) bool }
StateDB is the interface for accessing EVM state in state upgrades
Click to show internal directories.
Click to hide internal directories.