|
|
@ -43,6 +43,7 @@ type Config struct { |
|
|
|
Value *big.Int |
|
|
|
Value *big.Int |
|
|
|
Debug bool |
|
|
|
Debug bool |
|
|
|
EVMConfig vm.Config |
|
|
|
EVMConfig vm.Config |
|
|
|
|
|
|
|
BaseFee *big.Int |
|
|
|
|
|
|
|
|
|
|
|
State *state.StateDB |
|
|
|
State *state.StateDB |
|
|
|
GetHashFn func(n uint64) common.Hash |
|
|
|
GetHashFn func(n uint64) common.Hash |
|
|
@ -66,7 +67,7 @@ func setDefaults(cfg *Config) { |
|
|
|
IstanbulBlock: new(big.Int), |
|
|
|
IstanbulBlock: new(big.Int), |
|
|
|
MuirGlacierBlock: new(big.Int), |
|
|
|
MuirGlacierBlock: new(big.Int), |
|
|
|
BerlinBlock: new(big.Int), |
|
|
|
BerlinBlock: new(big.Int), |
|
|
|
LondonBlock: nil, |
|
|
|
LondonBlock: new(big.Int), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -93,6 +94,9 @@ func setDefaults(cfg *Config) { |
|
|
|
return common.BytesToHash(crypto.Keccak256([]byte(new(big.Int).SetUint64(n).String()))) |
|
|
|
return common.BytesToHash(crypto.Keccak256([]byte(new(big.Int).SetUint64(n).String()))) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if cfg.BaseFee == nil { |
|
|
|
|
|
|
|
cfg.BaseFee = big.NewInt(params.InitialBaseFee) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Execute executes the code using the input as call data during the execution.
|
|
|
|
// Execute executes the code using the input as call data during the execution.
|
|
|
|