@@ -44,7 +44,7 @@ def launch_txpool_viz(
4444 txpoolviz = plan .add_service (
4545 name = TXPOOL_VIZ_SERVICE_NAME ,
4646 config = ServiceConfig (
47- image = "punkhazardlabs/txpool-viz:latest " ,
47+ image = "punkhazardlabs/txpool-viz:dev " ,
4848 ports = {
4949 shared_utils .HTTP_APPLICATION_PROTOCOL : PortSpec (
5050 number = HTTP_PORT_NUMBER ,
@@ -57,38 +57,21 @@ def launch_txpool_viz(
5757 "REDIS_URL" : redis_url ,
5858 "CONFIG_JSON" : config_json ,
5959 "PORT" : str (HTTP_PORT_NUMBER ),
60+ "ENV" : "prod" # Default for Kurtosis
6061 },
6162 )
6263 )
6364
6465def create_config (
6566 endpoint_list ,
6667 network_participants ,
67- txpoolviz_params
68+ config
6869):
69- config = {}
70-
71- # endpoints list
70+ # add endpoints
7271 config ["endpoints" ] = endpoint_list
7372
74- if txpoolviz_params ["focil_enabled" ] == "true" :
73+ # add beacon sse if focil_enabled?
74+ if config ["focil_enabled" ] == "true" :
7575 config ["beacon_sse_url" ] = network_participants [0 ].cl_context .beacon_http_url
7676
77- # polling config
78- polling_config = {}
79- polling_config ["interval" ] = getattr (
80- txpoolviz_params , "polling_interval" , "3s" # 3s default
81- )
82- polling_config ["timeout" ] = getattr (
83- txpoolviz_params , "polling_timeout" , "3s" # 3s default
84- )
85- config ["polling" ] = polling_config
86-
87- # filters config
88- filters_config = {}
89- filters_config ["min_gas_price" ] = getattr (
90- txpoolviz_params , "min_gas_price" , "1gwei" # 1gwei default
91- )
92- config ["filters" ] = filters_config
93-
9477 return config
0 commit comments