From 674303b4d21313f15cd3d65c2fde5725d1e398fa Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "core/vm/runtime: Add Random field to config (#28001)" This reverts commit d1920b4ffe236d60d6f7c9a1c635e1ee8e129781. --- core/vm/runtime/env.go | 1 - core/vm/runtime/runtime.go | 1 - 2 files changed, 2 deletions(-) diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 7e330e0732..ffc631a90c 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -37,7 +37,6 @@ 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) diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 480e5cec67..a3e75c6721 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -45,7 +45,6 @@ type Config struct { EVMConfig vm.Config BaseFee *big.Int BlobHashes []common.Hash - Random *common.Hash State *state.StateDB GetHashFn func(n uint64) common.Hash