Unverified Commit 0ba2d3cf authored by Guido Vranken's avatar Guido Vranken Committed by GitHub

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

parent 1a213504
......@@ -37,6 +37,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, cfg.ChainConfig, cfg.EVMConfig)
......
......@@ -45,6 +45,7 @@ type Config struct {
EVMConfig vm.Config
BaseFee *big.Int
BlobHashes []common.Hash
Random *common.Hash
State *state.StateDB
GetHashFn func(n uint64) common.Hash
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment