@@ -27,7 +27,7 @@ MEV_BOOST_SERVICE_NAME_PREFIX = "mev-boost-"
2727
2828package_io = import_module ("github.com/kurtosis-tech/eth-network-package/package_io/constants.star" )
2929
30- def parse_input (input_args ):
30+ def parse_input (plan , input_args ):
3131 result = default_input_args ()
3232 for attr in input_args :
3333 value = input_args [attr ]
@@ -101,9 +101,6 @@ def parse_input(input_args):
101101 if result ["network_params" ]["genesis_delay" ] == 0 :
102102 fail ("genesis_delay is 0 needs to be > 0 " )
103103
104- if result ["network_params" ]["capella_fork_epoch" ] == 0 :
105- fail ("capella_fork_epoch is 0 needs to be > 0 " )
106-
107104 if result ["network_params" ]["deneb_fork_epoch" ] == 0 :
108105 fail ("deneb_fork_epoch is 0 needs to be > 0 " )
109106
@@ -117,6 +114,9 @@ def parse_input(input_args):
117114
118115
119116 if result .get ("mev_type" ) in ("mock" , "full" ):
117+ if result ["network_params" ]["capella_fork_epoch" ] == 0 :
118+ plan .print ("MEV components require a non zero value for the network_params.capella_fork_epoch; setting it to 1 as its 0" )
119+ result ["network_params" ]["capella_fork_epoch" ] = 1
120120 result = enrich_mev_extra_params (result , MEV_BOOST_SERVICE_NAME_PREFIX , FLASHBOTS_MEV_BOOST_PORT , result .get ("mev_type" ))
121121
122122 return struct (
@@ -196,8 +196,8 @@ def default_network_params():
196196 "seconds_per_slot" : 12 ,
197197 "slots_per_epoch" : 32 ,
198198 "genesis_delay" : 120 ,
199- "capella_fork_epoch" : 1 ,
200- "deneb_fork_epoch" : 500
199+ "capella_fork_epoch" : 0 ,
200+ "deneb_fork_epoch" : 500
201201 }
202202
203203def default_participant ():
0 commit comments