Skip to content

Commit

Permalink
fix: ports in bolt sidecar and bolt boost
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 3, 2024
1 parent b42e1f8 commit 4b17081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 5 additions & 5 deletions src/mev/bolt_boost/bolt_boost_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
}

Expand Down Expand Up @@ -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
)


Expand Down Expand Up @@ -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,
}
}

0 comments on commit 4b17081

Please sign in to comment.