Commit e36027b9 authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

fix: add CL genesis delay to final genesis time (#469)

parent f8289cb4
......@@ -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
......
......@@ -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
......
......@@ -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,
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment