@@ -31,12 +31,18 @@ def launch_txpool_viz(
3131 "Socket" : participant .el_context .ws_url
3232 })
3333
34- txpoolviz_params ["endpoints" ] = endpoint_list
34+ beacon_endpoints = []
35+ for participant in network_participants :
36+ beacon_endpoints .append ({
37+ "Name" : participant .cl_context .beacon_service_name ,
38+ "BeaconUrl" : participant .cl_context .beacon_http_url ,
39+ })
3540
3641
37- # add beacon sse if focil_enabled?
38- if txpoolviz_params ["focil_enabled" ] == "true" :
39- txpoolviz_params ["beacon_sse_url" ] = network_participants [0 ].cl_context .beacon_http_url
42+ txpoolviz_params ["endpoints" ] = endpoint_list
43+ txpoolviz_params ["beacon_endpoints" ] = beacon_endpoints
44+
45+ txpoolviz_params ["endpoints" ] = endpoint_list
4046
4147 # // config data & template
4248 template_data = txpool_viz_config_template_data (txpoolviz_params )
@@ -79,7 +85,7 @@ def launch_txpool_viz(
7985
8086def get_service_config (environment_variables , txpool_viz_params , node_selectors , files_artifact ):
8187 return ServiceConfig (
82- image = "punkhazardlabs/txpool-viz:dev " ,
88+ image = "punkhazardlabs/txpool-viz:latest " ,
8389 ports = {
8490 shared_utils .HTTP_APPLICATION_PROTOCOL : PortSpec (
8591 number = HTTP_PORT_NUMBER ,
@@ -107,6 +113,7 @@ def txpool_viz_config_template_data(config):
107113 }
108114
109115 if config ["focil_enabled" ] == "true" :
110- cfg ["BeaconSSEUrl" ] = config ["beacon_sse_url" ]
116+ cfg ["FocilEnabled" ]= config ["focil_enabled" ]
117+ cfg ["BeaconEndpoints" ] = config ["beacon_endpoints" ]
111118
112119 return cfg
0 commit comments