mirror of https://github.com/status-im/op-geth.git
cmd/evm: Add --vm.evm flag to support EVMC (#18457)
This commit is contained in:
parent
f50d66f2d8
commit
d37f987639
|
@ -110,6 +110,11 @@ var (
|
|||
Name: "nostack",
|
||||
Usage: "disable stack output",
|
||||
}
|
||||
EVMInterpreterFlag = cli.StringFlag{
|
||||
Name: "vm.evm",
|
||||
Usage: "External EVM configuration (default = built-in interpreter)",
|
||||
Value: "",
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -133,6 +138,7 @@ func init() {
|
|||
ReceiverFlag,
|
||||
DisableMemoryFlag,
|
||||
DisableStackFlag,
|
||||
EVMInterpreterFlag,
|
||||
}
|
||||
app.Commands = []cli.Command{
|
||||
compileCommand,
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue