@@ -2,6 +2,8 @@ _observability = import_module("/src/observability/observability.star")
22_ethereum_package_constants = import_module (
33 "github.com/ethpandaops/ethereum-package/src/package_io/constants.star"
44)
5+
6+ _filter = import_module ("/src/util/filter.star" )
57_net = import_module ("/src/util/net.star" )
68
79#
@@ -17,6 +19,8 @@ def launch(
1719 plan ,
1820 params ,
1921 network_params ,
22+ supervisors_params ,
23+ sidecar_context ,
2024 deployment_output ,
2125 el_params ,
2226 cl_params ,
@@ -26,6 +30,8 @@ def launch(
2630 plan = plan ,
2731 params = params ,
2832 network_params = network_params ,
33+ supervisors_params = supervisors_params ,
34+ sidecar_context = sidecar_context ,
2935 deployment_output = deployment_output ,
3036 el_params = el_params ,
3137 cl_params = cl_params ,
@@ -61,6 +67,8 @@ def get_service_config(
6167 plan ,
6268 params ,
6369 network_params ,
70+ supervisors_params ,
71+ sidecar_context ,
6472 deployment_output ,
6573 el_params ,
6674 cl_params ,
@@ -82,16 +90,18 @@ def get_service_config(
8290 env_vars = {
8391 "OP_CONDUCTOR_CONSENSUS_ADDR" : "0.0.0.0" ,
8492 "OP_CONDUCTOR_CONSENSUS_ADVERTISED" : "{}:{}" .format (
85- _ethereum_package_constants .PRIVATE_IP_ADDRESS_PLACEHOLDER ,
86- consensus_port .number ,
93+ params .service_name , consensus_port .number
8794 ),
8895 "OP_CONDUCTOR_CONSENSUS_PORT" : str (consensus_port .number ),
89- "OP_CONDUCTOR_EXECUTION_RPC" : _net .service_url (
96+ "OP_CONDUCTOR_EXECUTION_RPC" : sidecar_context .rpc_http_url
97+ if sidecar_context
98+ else _net .service_url (
9099 el_params .service_name , el_params .ports [_net .RPC_PORT_NAME ]
91100 ),
92101 "OP_CONDUCTOR_NODE_RPC" : _net .service_url (
93102 cl_params .service_name , cl_params .ports [_net .RPC_PORT_NAME ]
94103 ),
104+ "OP_CONDUCTOR_ROLLUP_BOOST_ENABLED" : "true" if sidecar_context else "false" ,
95105 # This might also become a parameter
96106 "OP_CONDUCTOR_HEALTHCHECK_INTERVAL" : str (_CONDUCTOR_HEALTH_CHECK_INTERVAL ),
97107 # This might also become a parameter
@@ -111,12 +121,20 @@ def get_service_config(
111121 network_params .network_id ,
112122 ),
113123 "OP_CONDUCTOR_PAUSED" : "true" if params .paused else "false" ,
124+ "OP_CONDUCTOR_RAFT_BOOTSTRAP" : "true" if params .bootstrap else "false" ,
114125 "OP_CONDUCTOR_RAFT_SERVER_ID" : params .service_name ,
115126 "OP_CONDUCTOR_RAFT_STORAGE_DIR" : _CONDUCTOR_DATA_DIRPATH_ON_SERVICE_CONTAINER ,
116127 "OP_CONDUCTOR_RPC_ADDR" : "0.0.0.0" ,
117128 "OP_CONDUCTOR_RPC_PORT" : str (rpc_port .number ),
118129 "OP_CONDUCTOR_RPC_ENABLE_ADMIN" : "true" if params .admin else "false" ,
119130 "OP_CONDUCTOR_RPC_ENABLE_PROXY" : "true" if params .proxy else "false" ,
131+ "OP_CONDUCTOR_SUPERVISOR_RPC" : _filter .first (
132+ [
133+ _net .service_url (s .service_name , s .ports [_net .RPC_PORT_NAME ])
134+ for s in supervisors_params
135+ ]
136+ )
137+ or "" ,
120138 }
121139
122140 if observability_helper .enabled :
0 commit comments