From b729f971cfa467c09887ab08b000c230528b8d97 Mon Sep 17 00:00:00 2001 From: thedevbirb Date: Thu, 27 Jun 2024 10:10:25 +0200 Subject: [PATCH] feat(sidecar): add execution api url, engine api url --- main.star | 10 +++++++++- src/mev/mev_sidecar/mev_sidecar_launcher.star | 10 ++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/main.star b/main.star index a38bef857..76065d1ba 100644 --- a/main.star +++ b/main.star @@ -290,7 +290,15 @@ def run(plan, args={}): mev_params, global_node_selectors, mev_boost_context, - all_cl_contexts[0].beacon_http_url + all_cl_contexts[0].beacon_http_url, + "http://{0}:{1}".format( + all_el_contexts[0].ip_addr, + all_el_contexts[0].rpc_port_num, + ), + 'http://{0}:{1}'".format( + all_el_contexts[0].ip_addr, + all_el_contexts[0].engine_rpc_port_num + ) ) if len(args_with_right_defaults.additional_services) == 0: diff --git a/src/mev/mev_sidecar/mev_sidecar_launcher.star b/src/mev/mev_sidecar/mev_sidecar_launcher.star index ce8658ca7..25dc15b1d 100644 --- a/src/mev/mev_sidecar/mev_sidecar_launcher.star +++ b/src/mev/mev_sidecar/mev_sidecar_launcher.star @@ -18,7 +18,9 @@ def launch_mev_sidecar( mev_params, node_selectors, mev_boost_context, - beacon_client_url + beacon_client_url, + execution_api_url, + engine_api_url ): image = mev_params.mev_sidecar_image @@ -40,7 +42,11 @@ def launch_mev_sidecar( "--mevboost-url", mev_boost_context_util.mev_boost_endpoint(mev_boost_context), "--beacon-client-url", - beacon_client_url + beacon_client_url, + "--execution-api", + execution_api_url, + "--engine-api-url", + engine_api_url ], # + mev_params.mev_relay_api_extra_args, ports={