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

pull/28005/head
Guido Vranken 1 year ago committed by GitHub
parent 1a2135044c
commit 0ba2d3cfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      core/vm/runtime/env.go
  2. 1
      core/vm/runtime/runtime.go

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

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

Loading…
Cancel
Save