core/vm/runtime: add Random field to config #28001 (#1234)

This commit is contained in:
Daniel Liu 2025-07-26 17:41:56 +08:00 committed by GitHub
parent 9f360824a9
commit 32b929e781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ func NewEnv(cfg *Config) *vm.EVM {
Difficulty: cfg.Difficulty,
GasLimit: cfg.GasLimit,
BaseFee: cfg.BaseFee,
Random: cfg.Random,
}
return vm.NewEVM(blockContext, txContext, cfg.State, nil, cfg.ChainConfig, cfg.EVMConfig)

View file

@ -45,6 +45,7 @@ type Config struct {
Debug bool
EVMConfig vm.Config
BaseFee *big.Int
Random *common.Hash
State *state.StateDB
GetHashFn func(n uint64) common.Hash