diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-03-02 20:35:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-03-05 20:01:13 +0800 |
commit | b7e57ca1d029d08d214a098d7aa123201b121774 (patch) | |
tree | a6b744b7af001b8bbd2e0e2ef93f11586ab4d38c /cmd | |
parent | 478143d69a13103a6809ef41a64b25db8c2438ee (diff) | |
download | dexon-b7e57ca1d029d08d214a098d7aa123201b121774.tar.gz dexon-b7e57ca1d029d08d214a098d7aa123201b121774.tar.zst dexon-b7e57ca1d029d08d214a098d7aa123201b121774.zip |
cmd/evm, core/vm, internal/ethapi: don't disable call gas metering
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/evm/main.go | 5 | ||||
-rw-r--r-- | cmd/evm/runner.go | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 6c39cf8b8..a59cb1fb8 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -86,10 +86,6 @@ var ( Name: "create", Usage: "indicates the action should be create rather than call", } - DisableGasMeteringFlag = cli.BoolFlag{ - Name: "nogasmetering", - Usage: "disable gas metering", - } GenesisFlag = cli.StringFlag{ Name: "prestate", Usage: "JSON file with prestate (genesis) config", @@ -128,7 +124,6 @@ func init() { ValueFlag, DumpFlag, InputFlag, - DisableGasMeteringFlag, MemProfileFlag, CPUProfileFlag, StatDumpFlag, diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go index a9a2e5420..8a7399840 100644 --- a/cmd/evm/runner.go +++ b/cmd/evm/runner.go @@ -161,9 +161,8 @@ func runCmd(ctx *cli.Context) error { GasPrice: utils.GlobalBig(ctx, PriceFlag.Name), Value: utils.GlobalBig(ctx, ValueFlag.Name), EVMConfig: vm.Config{ - Tracer: tracer, - Debug: ctx.GlobalBool(DebugFlag.Name) || ctx.GlobalBool(MachineFlag.Name), - DisableGasMetering: ctx.GlobalBool(DisableGasMeteringFlag.Name), + Tracer: tracer, + Debug: ctx.GlobalBool(DebugFlag.Name) || ctx.GlobalBool(MachineFlag.Name), }, } |