cmd/evm: Add --vm.evm flag to support EVMC (#18457)

This commit is contained in:
Paweł Bylica
2019-01-16 11:43:41 +01:00
committed by Guillaume Ballet
parent f50d66f2d8
commit d37f987639
2 changed files with 9 additions and 2 deletions

View File

@ -171,8 +171,9 @@ func runCmd(ctx *cli.Context) error {
Coinbase: genesisConfig.Coinbase,
BlockNumber: new(big.Int).SetUint64(genesisConfig.Number),
EVMConfig: vm.Config{
Tracer: tracer,
Debug: ctx.GlobalBool(DebugFlag.Name) || ctx.GlobalBool(MachineFlag.Name),
Tracer: tracer,
Debug: ctx.GlobalBool(DebugFlag.Name) || ctx.GlobalBool(MachineFlag.Name),
EVMInterpreter: ctx.GlobalString(EVMInterpreterFlag.Name),
},
}