Merge pull request #14859 from cdetrio/evm-flag-gasprice

core/vm/runtime: fix evm command to use --gasprice flag value
This commit is contained in:
Péter Szilágyi 2017-07-26 09:40:05 +02:00 committed by GitHub
commit fc78ce61c0

View File

@ -37,7 +37,7 @@ func NewEnv(cfg *Config, state *state.StateDB) *vm.EVM {
Time: cfg.Time,
Difficulty: cfg.Difficulty,
GasLimit: new(big.Int).SetUint64(cfg.GasLimit),
GasPrice: new(big.Int),
GasPrice: cfg.GasPrice,
}
return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig)