1- participant_network = import_module ("github.com/kurtosis-tech/eth2-package/src/participant_network/participant_network.star" )
21parse_input = import_module ("github.com/kurtosis-tech/eth2-package/src/package_io/parse_input.star" )
32
43static_files = import_module ("github.com/kurtosis-tech/eth2-package/src/static_files/static_files.star" )
5- genesis_constants = import_module ("github.com/kurtosis-tech/eth2- package/src/participant_network /prelaunch_data_generator/genesis_constants/genesis_constants.star" )
4+ genesis_constants = import_module ("github.com/kurtosis-tech/eth-network- package/src/prelaunch_data_generator/genesis_constants/genesis_constants.star" )
65
6+ eth_network_module = import_module ("github.com/kurtosis-tech/eth-network-package/main.star" )
77transaction_spammer = import_module ("github.com/kurtosis-tech/eth2-package/src/transaction_spammer/transaction_spammer.star" )
88forkmon = import_module ("github.com/kurtosis-tech/eth2-package/src/forkmon/forkmon_launcher.star" )
99prometheus = import_module ("github.com/kurtosis-tech/eth2-package/src/prometheus/prometheus_launcher.star" )
1010grafana = import_module ("github.com/kurtosis-tech/eth2-package/src/grafana/grafana_launcher.star" )
1111testnet_verifier = import_module ("github.com/kurtosis-tech/eth2-package/src/testnet_verifier/testnet_verifier.star" )
12+ mev_boost_launcher_module = import_module ("github.com/kurtosis-tech/eth2-package/src/mev_boost/mev_boost_launcher.star" )
1213
1314GRAFANA_USER = "admin"
1415GRAFANA_PASSWORD = "admin"
@@ -17,6 +18,9 @@ GRAFANA_DASHBOARD_PATH_URL = "/d/QdTOwy-nz/eth2-merge-kurtosis-module-dashboard?
1718FIRST_NODE_FINALIZATION_FACT = "cl-boot-finalization-fact"
1819HTTP_PORT_ID_FOR_FACT = "http"
1920
21+ MEV_BOOST_SERVICE_NAME_PREFIX = "mev-boost-"
22+ MEV_BOOST_SHOULD_CHECK_RELAY = True
23+
2024def run (plan , args ):
2125 args_with_right_defaults = parse_input .parse_input (args )
2226
@@ -30,14 +34,23 @@ def run(plan, args):
3034 plan .print ("Read the prometheus, grafana templates" )
3135
3236 plan .print ("Launching participant network with {0} participants and the following network params {1}" .format (num_participants , network_params ))
33- all_participants , cl_gensis_timestamp = participant_network . launch_participant_network (plan , args_with_right_defaults . participants , network_params , args_with_right_defaults . global_client_log_level )
37+ all_participants , cl_genesis_timestamp = eth_network_module . run (plan , args )
3438
3539 all_el_client_contexts = []
3640 all_cl_client_contexts = []
3741 for participant in all_participants :
3842 all_el_client_contexts .append (participant .el_client_context )
3943 all_cl_client_contexts .append (participant .cl_client_context )
40-
44+
45+ # spin up mev boost contexts
46+ all_mevboost_contexts = []
47+ for index , participant in enumerate (args_with_right_defaults .participants ):
48+ mev_boost_context = None
49+ if hasattr (participant , "builder_network_params" ) and participant .builder_network_params != None :
50+ mev_boost_launcher = mev_boost_launcher_module .new_mev_boost_launcher (MEV_BOOST_SHOULD_CHECK_RELAY , participant .builder_network_params .relay_endpoints )
51+ mev_boost_service_name = "{0}{1}" .format (MEV_BOOST_SERVICE_NAME_PREFIX , index )
52+ mev_boost_context = mev_boost_launcher_module .launch_mevboost (plan , mev_boost_launcher , mev_boost_service_name , network_params .network_id )
53+ all_mevboost_contexts .append (mev_boost_context )
4154
4255 if not args_with_right_defaults .launch_additional_services :
4356 return
@@ -51,7 +64,7 @@ def run(plan, args):
5164
5265 plan .print ("Launching forkmon" )
5366 forkmon_config_template = read_file (static_files .FORKMON_CONFIG_TEMPLATE_FILEPATH )
54- forkmon .launch_forkmon (plan , forkmon_config_template , all_cl_client_contexts , cl_gensis_timestamp , network_params .seconds_per_slot , network_params .slots_per_epoch )
67+ forkmon .launch_forkmon (plan , forkmon_config_template , all_cl_client_contexts , cl_genesis_timestamp , network_params .seconds_per_slot , network_params .slots_per_epoch )
5568 plan .print ("Succesfully launched forkmon" )
5669
5770 plan .print ("Launching prometheus..." )
0 commit comments