Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
e36027b9
Unverified
Commit
e36027b9
authored
Jan 22, 2024
by
Barnabas Busa
Committed by
GitHub
Jan 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add CL genesis delay to final genesis time (#469)
parent
f8289cb4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
README.md
README.md
+1
-1
network_params.yaml
network_params.yaml
+1
-1
input_parser.star
src/package_io/input_parser.star
+1
-1
participant_network.star
src/participant_network.star
+3
-1
No files found.
README.md
View file @
e36027b9
...
...
@@ -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
:
1
20
genesis_delay
:
20
# Max churn rate for the network introduced by
# EIP-7514 https:#eips.ethereum.org/EIPS/eip-7514
...
...
network_params.yaml
View file @
e36027b9
...
...
@@ -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
:
1
20
genesis_delay
:
20
max_churn
:
8
ejection_balance
:
16000000000
capella_fork_epoch
:
0
...
...
src/package_io/input_parser.star
View file @
e36027b9
...
...
@@ -479,7 +479,7 @@ def default_network_params():
"network_id": "3151908",
"deposit_contract_address": "0x4242424242424242424242424242424242424242",
"seconds_per_slot": 12,
"genesis_delay":
1
20,
"genesis_delay": 20,
"max_churn": 8,
"ejection_balance": 16000000000,
"eth1_follow_distance": 2048,
...
...
src/participant_network.star
View file @
e36027b9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment