Skip to content

Commit

Permalink
fix: add CL genesis delay to final genesis time (ethpandaops#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Jan 22, 2024
1 parent f8289cb commit e36027b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ network_params:
# The number of pre-registered validators for genesis. If 0 or not specified then the value will be calculated from the participants
preregistered_validator_count: 0
# How long you want the network to wait before starting up
genesis_delay: 120
genesis_delay: 20
# Max churn rate for the network introduced by
# EIP-7514 https:#eips.ethereum.org/EIPS/eip-7514
Expand Down
2 changes: 1 addition & 1 deletion network_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ network_params:
question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy
very lucky have athlete"
preregistered_validator_count: 0
genesis_delay: 120
genesis_delay: 20
max_churn: 8
ejection_balance: 16000000000
capella_fork_epoch: 0
Expand Down
2 changes: 1 addition & 1 deletion src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def default_network_params():
"network_id": "3151908",
"deposit_contract_address": "0x4242424242424242424242424242424242424242",
"seconds_per_slot": 12,
"genesis_delay": 120,
"genesis_delay": 20,
"max_churn": 8,
"ejection_balance": 16000000000,
"eth1_follow_distance": 2048,
Expand Down
4 changes: 3 additions & 1 deletion src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def launch_participant_network(
# We need to send the same genesis time to both the EL and the CL to ensure that timestamp based forking works as expected
final_genesis_timestamp = get_final_genesis_timestamp(
plan,
CL_GENESIS_DATA_GENERATION_TIME + num_participants * CL_NODE_STARTUP_TIME,
network_params.genesis_delay
+ CL_GENESIS_DATA_GENERATION_TIME
+ num_participants * CL_NODE_STARTUP_TIME,
)

# if preregistered validator count is 0 (default) then calculate the total number of validators from the participants
Expand Down

0 comments on commit e36027b

Please sign in to comment.