Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
fix: lower capella fork epoch to 1 and change CL capella calculation (#…
Browse files Browse the repository at this point in the history
…25)

The CL client will hit capella at 3*capella_fork_epoch or 6 minutes~
The EL client will hit capella at
`32*12*capella_fork_epoch+genesis_delay` or 6.5 minutes

I don't see any errors
  • Loading branch information
h4ck3rk3y authored Jun 23, 2023
1 parent 47bac9b commit 0e36ac4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def default_network_params():
"seconds_per_slot": 4,
"slots_per_epoch": 20,
"genesis_delay": 10,
"capella_fork_epoch": 5,
"capella_fork_epoch": 1,
}

def default_participant():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,6 @@ def new_cl_genesis_config_template_data(network_id, seconds_per_slot, unix_times
"PreregisteredValidatorKeysMnemonic": preregistered_validator_keys_mnemonic,
"DepositContractAddress": deposit_contract_address,
"GenesisDelay": genesis_delay,
"CapellaForkEpoch": capella_fork_epoch
# each capella epoch is around 2 seconds, we multiply it with 3 so that it happens around the time of EL
"CapellaForkEpoch": capella_fork_epoch*3
}

0 comments on commit 0e36ac4

Please sign in to comment.