diff --git a/main.star b/main.star index 3d689f849..3141358f6 100644 --- a/main.star +++ b/main.star @@ -307,7 +307,7 @@ def run(plan, args={}): }] bolt_sidecar_config = { "constraints_api_url": "{0}:{1}".format( - bolt_sidecar.BOLT_SIDECAR_BASE_URL, bolt_sidecar.BOLT_SIDECAR_COMMITMENTS_API_PORT + bolt_sidecar.BOLT_SIDECAR_BASE_URL, bolt_sidecar.BOLT_SIDECAR_BOOST_PROXY_PORT ), "beacon_api_url": all_cl_contexts[0].beacon_http_url, "execution_api_url": "http://{0}:{1}".format( diff --git a/src/mev/bolt_boost/bolt_boost_launcher.star b/src/mev/bolt_boost/bolt_boost_launcher.star index b7d1da774..48c5011b5 100644 --- a/src/mev/bolt_boost/bolt_boost_launcher.star +++ b/src/mev/bolt_boost/bolt_boost_launcher.star @@ -2,17 +2,17 @@ shared_utils = import_module("../../shared_utils/shared_utils.star") mev_boost_context_module = import_module("../mev_boost/mev_boost_context.star") input_parser = import_module("../../package_io/input_parser.star") static_files = import_module("../../static_files/static_files.star") +bolt_sidecar = import_module("../bolt_sidecar/bolt_sidecar_launcher.star") FLASHBOTS_MEV_BOOST_PROTOCOL = "TCP" SERVICE_NAME="bolt-boost" BOLT_BOOST_CONFIG_FILENAME="cb-bolt-config.toml" BOLT_BOOST_CONFIG_MOUNT_DIRPATH_ON_SERVICE="/config" -BOLT_BOOST_BUILDER_PROXY_PORT=18551 USED_PORTS = { "api": shared_utils.new_port_spec( - input_parser.FLASHBOTS_MEV_BOOST_PORT, FLASHBOTS_MEV_BOOST_PROTOCOL, wait="5s" + bolt_sidecar.BOLT_SIDECAR_BOOST_PROXY_PORT, "TCP", wait="5s" ) } @@ -40,10 +40,10 @@ def launch( global_node_selectors, ) - mev_boost_service = plan.add_service(service_name, config) + bolt_boost_service = plan.add_service(service_name, config) return mev_boost_context_module.new_mev_boost_context( - mev_boost_service.ip_address, input_parser.FLASHBOTS_MEV_BOOST_PORT + bolt_boost_service.ip_address, bolt_boost_service.ports["api"].number ) @@ -112,6 +112,6 @@ def new_bolt_boost_config_template_data(image, relays_config, bolt_sidecar_confi "engine_api_url": bolt_sidecar_config["engine_api_url"], "jwt_hex": bolt_sidecar_config["jwt_hex"], "metrics_port": bolt_sidecar_config["metrics_port"], - "builder_proxy_port": BOLT_BOOST_BUILDER_PROXY_PORT, + "builder_proxy_port": bolt_sidecar.BOLT_SIDECAR_BOOST_PROXY_PORT, } }