Skip to content

Commit b62ed6f

Browse files
authored
fix: beaconchain explorer (ethereum#531)
1 parent 72ddeb2 commit b62ed6f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/full_beaconchain/full_beaconchain_launcher.star

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ def launch_full_beacon(
147147
)
148148
redis_url = "{}:{}".format(redis_output.hostname, redis_output.port_number)
149149

150+
cl_url = cl_contexts[0].beacon_http_url[7:] # Remove the "http://"
151+
cl_port = cl_contexts[0].beacon_http_url.split(":")[2] # Get the port number
152+
150153
template_data = new_config_template_data(
151-
cl_contexts[0],
154+
cl_url,
155+
cl_port,
152156
el_uri,
153157
little_bigtable.ip_address,
154158
LITTLE_BIGTABLE_PORT_NUMBER,
@@ -354,11 +358,19 @@ def launch_full_beacon(
354358

355359

356360
def new_config_template_data(
357-
cl_node_info, el_uri, lbt_host, lbt_port, db_host, db_port, redis_url, frontend_port
361+
cl_url,
362+
cl_port,
363+
el_uri,
364+
lbt_host,
365+
lbt_port,
366+
db_host,
367+
db_port,
368+
redis_url,
369+
frontend_port,
358370
):
359371
return {
360-
"CLNodeHost": cl_node_info.ip_addr,
361-
"CLNodePort": cl_node_info.http_port_num,
372+
"CLNodeHost": cl_url,
373+
"CLNodePort": cl_port,
362374
"ELNodeEndpoint": el_uri,
363375
"LBTHost": lbt_host,
364376
"LBTPort": lbt_port,
@@ -367,7 +379,3 @@ def new_config_template_data(
367379
"RedisEndpoint": redis_url,
368380
"FrontendPort": frontend_port,
369381
}
370-
371-
372-
def new_cl_client_info(ip_addr, port_num, service_name):
373-
return {"IPAddr": ip_addr, "PortNum": port_num, "Name": service_name}

0 commit comments

Comments
 (0)