Skip to content

Commit

Permalink
fix: beaconchain explorer (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Apr 2, 2024
1 parent 72ddeb2 commit b62ed6f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/full_beaconchain/full_beaconchain_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ def launch_full_beacon(
)
redis_url = "{}:{}".format(redis_output.hostname, redis_output.port_number)

cl_url = cl_contexts[0].beacon_http_url[7:] # Remove the "http://"
cl_port = cl_contexts[0].beacon_http_url.split(":")[2] # Get the port number

template_data = new_config_template_data(
cl_contexts[0],
cl_url,
cl_port,
el_uri,
little_bigtable.ip_address,
LITTLE_BIGTABLE_PORT_NUMBER,
Expand Down Expand Up @@ -354,11 +358,19 @@ def launch_full_beacon(


def new_config_template_data(
cl_node_info, el_uri, lbt_host, lbt_port, db_host, db_port, redis_url, frontend_port
cl_url,
cl_port,
el_uri,
lbt_host,
lbt_port,
db_host,
db_port,
redis_url,
frontend_port,
):
return {
"CLNodeHost": cl_node_info.ip_addr,
"CLNodePort": cl_node_info.http_port_num,
"CLNodeHost": cl_url,
"CLNodePort": cl_port,
"ELNodeEndpoint": el_uri,
"LBTHost": lbt_host,
"LBTPort": lbt_port,
Expand All @@ -367,7 +379,3 @@ def new_config_template_data(
"RedisEndpoint": redis_url,
"FrontendPort": frontend_port,
}


def new_cl_client_info(ip_addr, port_num, service_name):
return {"IPAddr": ip_addr, "PortNum": port_num, "Name": service_name}

0 comments on commit b62ed6f

Please sign in to comment.