Commit 66e73fb9 authored by shana's avatar shana Committed by GitHub

fix: builder args incorrectly configured (#343)

as new args were added to geth the hardcoded indexes are not configured
properly. This makes cmd args for builder more robust.
parent 789ed8e7
...@@ -223,8 +223,11 @@ def get_config( ...@@ -223,8 +223,11 @@ def get_config(
] ]
if BUILDER_IMAGE_STR in image: if BUILDER_IMAGE_STR in image:
cmd[10] = "--http.api=admin,engine,net,eth,web3,debug,flashbots" for index, arg in enumerate(cmd):
cmd[14] = "--ws.api=admin,engine,net,eth,web3,debug,flashbots" if "--http.api" in arg:
cmd[index] = "--http.api=admin,engine,net,eth,web3,debug,mev,flashbots"
if "--ws.api" in arg:
cmd[index] = "--ws.api=admin,engine,net,eth,web3,debug,mev,flashbots"
if len(existing_el_clients) > 0: if len(existing_el_clients) > 0:
cmd.append( cmd.append(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment