core/vm/runtime: Add Random field to config

This commit is contained in:
Guido Vranken 2023-08-24 15:35:05 +02:00
parent 1a2135044c
commit 93fa96ffd5
2 changed files with 2 additions and 0 deletions

View file

@ -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)

View file

@ -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