Skip to content

Commit

Permalink
cmd/utils: initialize external evms if configured for geth
Browse files Browse the repository at this point in the history
Date: 2022-11-07 10:17:54-08:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Nov 7, 2022
1 parent 2d01869 commit ad28143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,12 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {

if ctx.IsSet(EWASMInterpreterFlag.Name) {
cfg.EWASMInterpreter = ctx.String(EWASMInterpreterFlag.Name)
vm.InitEVMCEwasm(cfg.EWASMInterpreter)
}

if ctx.IsSet(EVMInterpreterFlag.Name) {
cfg.EVMInterpreter = ctx.String(EVMInterpreterFlag.Name)
vm.InitEVMCEVM(cfg.EVMInterpreter)
}
if ctx.IsSet(RPCGlobalGasCapFlag.Name) {
cfg.RPCGasCap = ctx.Uint64(RPCGlobalGasCapFlag.Name)
Expand Down

0 comments on commit ad28143

Please sign in to comment.