From 0b4904f644947fba2b3037837a0fc981b7864c7e Mon Sep 17 00:00:00 2001 From: Anton Bronnikov Date: Tue, 6 Feb 2024 16:35:08 +0200 Subject: [PATCH] [feat] add suave-enabled geth support --- src/el/geth/geth_launcher.star | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/el/geth/geth_launcher.star b/src/el/geth/geth_launcher.star index 727818f7c..7b0ab6941 100644 --- a/src/el/geth/geth_launcher.star +++ b/src/el/geth/geth_launcher.star @@ -66,6 +66,7 @@ VERBOSITY_LEVELS = { } BUILDER_IMAGE_STR = "builder" +SUAVE_ENABLED_GETH_IMAGE_STR = "suave" def launch( @@ -293,6 +294,13 @@ def get_config( if "--ws.api" in arg: cmd[index] = "--ws.api=admin,engine,net,eth,web3,debug,mev,flashbots" + if SUAVE_ENABLED_GETH_IMAGE_STR in image: + for index, arg in enumerate(cmd): + if "--http.api" in arg: + cmd[index] = "--http.api=admin,engine,net,eth,web3,debug,suavex" + if "--ws.api" in arg: + cmd[index] = "--ws.api=admin,engine,net,eth,web3,debug,suavex" + if network == constants.NETWORK_NAME.kurtosis: if len(existing_el_clients) > 0: cmd.append(