@@ -36,9 +36,6 @@ MEV_BOOST_RELAY_DEFAULT_IMAGE = "flashbots/mev-boost-relay:0.27"
3636
3737MEV_BOOST_RELAY_IMAGE_NON_ZERO_CAPELLA = "flashbots/mev-boost-relay:0.26"
3838
39- NETHERMIND_NODE_NAME = "nethermind"
40- NIMBUS_NODE_NAME = "nimbus"
41-
4239# Placeholder value for the deneb fork epoch if electra is being run
4340# TODO: This is a hack, and should be removed once we electra is rebased on deneb
4441HIGH_DENEB_VALUE_FORK_VERKLE = 2000000000
@@ -236,6 +233,7 @@ def input_parser(plan, input_args):
236233 ],
237234 shard_committee_period = result ["network_params" ]["shard_committee_period" ],
238235 network_sync_base_url = result ["network_params" ]["network_sync_base_url" ],
236+ preset = result ["network_params" ]["preset" ],
239237 ),
240238 mev_params = struct (
241239 mev_relay_image = result ["mev_params" ]["mev_relay_image" ],
@@ -339,10 +337,27 @@ def parse_network_params(input_args):
339337 cl_type = participant ["cl_type" ]
340338 vc_type = participant ["vc_type" ]
341339
342- if cl_type in (NIMBUS_NODE_NAME ) and (
343- result ["network_params" ]["seconds_per_slot" ] < 12
340+ if (
341+ cl_type in (constants .CL_TYPE .nimbus )
342+ and (result ["network_params" ]["seconds_per_slot" ] < 12 )
343+ and result ["network_params" ]["preset" ] == "mainnet"
344344 ):
345- fail ("nimbus can't be run with slot times below 12 seconds" )
345+ fail (
346+ "nimbus can't be run with slot times below 12 seconds with "
347+ + result ["network_params" ]["preset" ]
348+ + " preset"
349+ )
350+
351+ if (
352+ cl_type in (constants .CL_TYPE .nimbus )
353+ and (result ["network_params" ]["seconds_per_slot" ] != 6 )
354+ and result ["network_params" ]["preset" ] == "minimal"
355+ ):
356+ fail (
357+ "nimbus can't be run with slot times different than 6 seconds with "
358+ + result ["network_params" ]["preset" ]
359+ + " preset"
360+ )
346361
347362 el_image = participant ["el_image" ]
348363 if el_image == "" :
@@ -508,6 +523,17 @@ def parse_network_params(input_args):
508523 for participant in result ["participants" ]:
509524 participant ["validator_count" ] = 0
510525
526+ if result ["network_params" ]["preset" ] not in ["mainnet" , "minimal" ]:
527+ fail (
528+ "preset "
529+ + result ["network_params" ]["preset" ]
530+ + " is not supported, it can only be mainnet or minimal"
531+ )
532+
533+ if result ["network_params" ]["preset" ] == "minimal" :
534+ if result ["network_params" ]["deneb_fork_epoch" ] > 0 :
535+ fail ("minimal preset only supports deneb genesis fork epoch" )
536+
511537 return result
512538
513539
@@ -613,6 +639,7 @@ def default_network_params():
613639 "deneb_fork_epoch" : 0 ,
614640 "electra_fork_epoch" : 500 ,
615641 "network_sync_base_url" : "https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/" ,
642+ "preset" : "mainnet" ,
616643 }
617644
618645
0 commit comments