@@ -78,6 +78,7 @@ def launch(
7878 observability_helper ,
7979 interop_params ,
8080 da_server_context ,
81+ sequencer_params ,
8182):
8283 beacon_node_identity_recipe = PostHttpRequestRecipe (
8384 endpoint = "/" ,
@@ -112,6 +113,7 @@ def launch(
112113 observability_helper ,
113114 interop_params ,
114115 da_server_context ,
116+ sequencer_params ,
115117 )
116118
117119 beacon_service = plan .add_service (service_name , config )
@@ -161,6 +163,7 @@ def get_beacon_config(
161163 observability_helper ,
162164 interop_params ,
163165 da_server_context ,
166+ sequencer_params ,
164167):
165168 ports = dict (get_used_ports (BEACON_DISCOVERY_PORT_NUM ))
166169
@@ -247,15 +250,18 @@ def get_beacon_config(
247250 )
248251
249252 if sequencer_enabled :
250- sequencer_private_key = util .read_network_config_value (
251- plan ,
252- launcher .deployment_output ,
253- "sequencer-{0}" .format (launcher .network_params .network_id ),
254- ".privateKey" ,
255- )
253+ if not sequencer_params .private_key :
254+ env_vars .update (
255+ {
256+ "OP_NODE_SIGNER_ADDRESS" : str (sequencer_params .signer_address ),
257+ "OP_NODE_SIGNER_ENDPOINT" : str (sequencer_params .signer_endpoint ),
258+ "OP_NODE_SIGNER_TLS_ENABLED" : "false" ,
259+ }
260+ )
261+ else :
262+ cmd += ["--p2p.sequencer.key=" + sequencer_params .private_key ]
256263
257264 cmd += [
258- "--p2p.sequencer.key=" + sequencer_private_key ,
259265 "--sequencer.enabled" ,
260266 "--sequencer.l1-confs=2" ,
261267 ]
@@ -314,9 +320,12 @@ def get_beacon_config(
314320 return ServiceConfig (** config_args )
315321
316322
317- def new_op_node_builder_launcher (deployment_output , jwt_file , network_params ):
323+ def new_op_node_builder_launcher (
324+ deployment_output , jwt_file , network_params , sequencer_params
325+ ):
318326 return struct (
319327 deployment_output = deployment_output ,
320328 jwt_file = jwt_file ,
321329 network_params = network_params ,
330+ sequencer_params = sequencer_params ,
322331 )
0 commit comments