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
d7e31e01
Unverified
Commit
d7e31e01
authored
Dec 06, 2024
by
Barnabas Busa
Committed by
GitHub
Dec 06, 2024
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support older forks (#846)
parent
6b7b0192
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
193 additions
and
28 deletions
+193
-28
altair-genesis.yaml
.github/tests/altair-genesis.yaml
+24
-0
bellatrix-genesis.yaml
.github/tests/bellatrix-genesis.yaml
+23
-0
capella-genesis.yaml
.github/tests/capella-genesis.yaml
+23
-0
deneb-genesis.yaml
.github/tests/deneb-genesis.yaml
+6
-0
deneb.yaml
.github/tests/deneb.yaml
+23
-0
fulu.yaml
.github/tests/fulu.yaml
+23
-0
phase0-genesis.yaml
.github/tests/phase0-genesis.yaml
+23
-0
README.md
README.md
+20
-1
kurtosis.star
src/network_launcher/kurtosis.star
+5
-18
constants.star
src/package_io/constants.star
+2
-3
input_parser.star
src/package_io/input_parser.star
+9
-4
sanity_check.star
src/package_io/sanity_check.star
+3
-0
el_cl_genesis_generator.star
...data_generator/el_cl_genesis/el_cl_genesis_generator.star
+5
-1
values.env.tmpl
static_files/genesis-generation-config/el-cl/values.env.tmpl
+4
-1
No files found.
.github/tests/altair-genesis.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
1
capella_fork_epoch
:
2
deneb_fork_epoch
:
3
electra_fork_epoch
:
4
fulu_fork_epoch
:
5
genesis_delay
:
120
.github/tests/bellatrix-genesis.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
0
capella_fork_epoch
:
1
deneb_fork_epoch
:
2
electra_fork_epoch
:
3
fulu_fork_epoch
:
4
genesis_delay
:
120
.github/tests/capella-genesis.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
0
capella_fork_epoch
:
0
deneb_fork_epoch
:
1
electra_fork_epoch
:
2
fulu_fork_epoch
:
3
genesis_delay
:
120
.github/tests/den
cun
-genesis.yaml
→
.github/tests/den
eb
-genesis.yaml
View file @
d7e31e01
...
@@ -12,4 +12,10 @@ participants:
...
@@ -12,4 +12,10 @@ participants:
-
el_type
:
ethereumjs
-
el_type
:
ethereumjs
cl_type
:
teku
cl_type
:
teku
network_params
:
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
0
capella_fork_epoch
:
0
deneb_fork_epoch
:
0
deneb_fork_epoch
:
0
electra_fork_epoch
:
1
fulu_fork_epoch
:
2
genesis_delay
:
120
.github/tests/deneb.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
0
capella_fork_epoch
:
0
deneb_fork_epoch
:
1
electra_fork_epoch
:
2
fulu_fork_epoch
:
3
preset
:
minimal
.github/tests/fulu.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
0
bellatrix_fork_epoch
:
0
capella_fork_epoch
:
0
deneb_fork_epoch
:
0
electra_fork_epoch
:
0
fulu_fork_epoch
:
1
preset
:
minimal
.github/tests/phase0-genesis.yaml
0 → 100644
View file @
d7e31e01
participants
:
-
el_type
:
geth
cl_type
:
teku
-
el_type
:
reth
cl_type
:
prysm
-
el_type
:
nethermind
cl_type
:
nimbus
-
el_type
:
besu
cl_type
:
lighthouse
-
el_type
:
nimbus
cl_type
:
lodestar
-
el_type
:
erigon
cl_type
:
grandine
additional_services
:
-
dora
network_params
:
altair_fork_epoch
:
1
bellatrix_fork_epoch
:
2
capella_fork_epoch
:
3
deneb_fork_epoch
:
4
electra_fork_epoch
:
5
fulu_fork_epoch
:
6
genesis_delay
:
120
README.md
View file @
d7e31e01
...
@@ -536,14 +536,33 @@ network_params:
...
@@ -536,14 +536,33 @@ network_params:
# The epoch at which the deneb/electra/eip7594(peerdas) forks are set to occur. Note: PeerDAS and Electra clients are currently
# The epoch at which the deneb/electra/eip7594(peerdas) forks are set to occur. Note: PeerDAS and Electra clients are currently
# working on forks. So set either one of the below forks.
# working on forks. So set either one of the below forks.
# Altair fork epoch
# Defaults to 0
altair_fork_epoch
:
0
# Bellatrix fork epoch
# Defaults to 0
bellatrix_fork_epoch
:
0
# Capella fork epoch
# Defaults to 0
capella_fork_epoch
:
0
# Deneb fork epoch
# Defaults to 0
deneb_fork_epoch
:
0
deneb_fork_epoch
:
0
# Electra fork epoch
# Defaults to 100000000
electra_fork_epoch
:
100000000
electra_fork_epoch
:
100000000
# Fulu fork epoch
# Defaults to 100000001
fulu_fork_epoch
:
100000001
fulu_fork_epoch
:
100000001
# Eip7594 fork epoch
# Defaults to 100000002
eip7594_fork_epoch
:
100000002
eip7594_fork_epoch
:
100000002
# The fork version to set if the eip7594 fork is active
# The fork version to set if the eip7594 fork is active
eip7594_fork_version
:
"
0x60000038"
eip7594_fork_version
:
"
0x60000038"
...
...
src/network_launcher/kurtosis.star
View file @
d7e31e01
...
@@ -57,30 +57,17 @@ def launch(
...
@@ -57,30 +57,17 @@ def launch(
plan.print("Generating EL CL data")
plan.print("Generating EL CL data")
# we are running capella genesis - deprecated
if network_params.deneb_fork_epoch > 0:
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
args_with_right_defaults.docker_cache_params,
args_with_right_defaults.docker_cache_params,
constants.ETHEREUM_GENESIS_GENERATOR.capella_genesis,
constants.ETHEREUM_GENESIS_GENERATOR.default_genesis_generator_image,
)
# we are running deneb genesis - default behavior
elif network_params.deneb_fork_epoch == 0:
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
args_with_right_defaults.docker_cache_params,
constants.ETHEREUM_GENESIS_GENERATOR.deneb_genesis,
)
)
# we are running electra - experimental
# we are running electra - experimental
el
if network_params.electra_fork_epoch != None:
if network_params.electra_fork_epoch != None:
if network_params.electra_fork_epoch == 0:
if network_params.electra_fork_epoch == 0:
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
args_with_right_defaults.docker_cache_params,
args_with_right_defaults.docker_cache_params,
constants.ETHEREUM_GENESIS_GENERATOR.verkle_genesis,
constants.ETHEREUM_GENESIS_GENERATOR.verkle_genesis,
)
)
else:
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
args_with_right_defaults.docker_cache_params,
constants.ETHEREUM_GENESIS_GENERATOR.verkle_support_genesis,
)
else:
else:
fail(
fail(
"Unsupported fork epoch configuration, need to define either deneb_fork_epoch or electra_fork_epoch"
"Unsupported fork epoch configuration, need to define either deneb_fork_epoch or electra_fork_epoch"
...
...
src/package_io/constants.star
View file @
d7e31e01
...
@@ -103,6 +103,7 @@ DEFAULT_MNEMONIC = "giant issue aisle success illegal bike spike question tent b
...
@@ -103,6 +103,7 @@ DEFAULT_MNEMONIC = "giant issue aisle success illegal bike spike question tent b
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
GENESIS_FORK_VERSION = "0x10000038"
GENESIS_FORK_VERSION = "0x10000038"
ALTAIR_FORK_VERSION = "0x20000038"
BELLATRIX_FORK_VERSION = "0x30000038"
BELLATRIX_FORK_VERSION = "0x30000038"
CAPELLA_FORK_VERSION = "0x40000038"
CAPELLA_FORK_VERSION = "0x40000038"
DENEB_FORK_VERSION = "0x50000038"
DENEB_FORK_VERSION = "0x50000038"
...
@@ -123,9 +124,7 @@ CONTAINER_REGISTRY = struct(
...
@@ -123,9 +124,7 @@ CONTAINER_REGISTRY = struct(
ETHEREUM_GENESIS_GENERATOR = struct(
ETHEREUM_GENESIS_GENERATOR = struct(
capella_genesis="ethpandaops/ethereum-genesis-generator:2.0.12", # Deprecated (no support for minimal config)
default_genesis_generator_image="ethpandaops/ethereum-genesis-generator:3.4.3", # Default
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.4.1", # Default
verkle_support_genesis="ethpandaops/ethereum-genesis-generator:3.0.0-rc.19", # soon to be deneb genesis, waiting for rebase
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
)
)
...
...
src/package_io/input_parser.star
View file @
d7e31e01
...
@@ -313,6 +313,9 @@ def input_parser(plan, input_args):
...
@@ -313,6 +313,9 @@ def input_parser(plan, input_args):
churn_limit_quotient=result["network_params"]["churn_limit_quotient"],
churn_limit_quotient=result["network_params"]["churn_limit_quotient"],
ejection_balance=result["network_params"]["ejection_balance"],
ejection_balance=result["network_params"]["ejection_balance"],
eth1_follow_distance=result["network_params"]["eth1_follow_distance"],
eth1_follow_distance=result["network_params"]["eth1_follow_distance"],
altair_fork_epoch=result["network_params"]["altair_fork_epoch"],
bellatrix_fork_epoch=result["network_params"]["bellatrix_fork_epoch"],
capella_fork_epoch=result["network_params"]["capella_fork_epoch"],
deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"],
deneb_fork_epoch=result["network_params"]["deneb_fork_epoch"],
electra_fork_epoch=result["network_params"]["electra_fork_epoch"],
electra_fork_epoch=result["network_params"]["electra_fork_epoch"],
fulu_fork_epoch=result["network_params"]["fulu_fork_epoch"],
fulu_fork_epoch=result["network_params"]["fulu_fork_epoch"],
...
@@ -744,10 +747,6 @@ def parse_network_params(plan, input_args):
...
@@ -744,10 +747,6 @@ def parse_network_params(plan, input_args):
+ " is not supported, it can only be mainnet or minimal"
+ " is not supported, it can only be mainnet or minimal"
)
)
if result["network_params"]["preset"] == "minimal":
if result["network_params"]["deneb_fork_epoch"] > 0:
fail("minimal preset only supports deneb genesis fork epoch")
return result
return result
...
@@ -865,6 +864,9 @@ def default_network_params():
...
@@ -865,6 +864,9 @@ def default_network_params():
"eth1_follow_distance": 2048,
"eth1_follow_distance": 2048,
"min_validator_withdrawability_delay": 256,
"min_validator_withdrawability_delay": 256,
"shard_committee_period": 256,
"shard_committee_period": 256,
"altair_fork_epoch": 0,
"bellatrix_fork_epoch": 0,
"capella_fork_epoch": 0,
"deneb_fork_epoch": 0,
"deneb_fork_epoch": 0,
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
...
@@ -899,6 +901,9 @@ def default_minimal_network_params():
...
@@ -899,6 +901,9 @@ def default_minimal_network_params():
"eth1_follow_distance": 16,
"eth1_follow_distance": 16,
"min_validator_withdrawability_delay": 256,
"min_validator_withdrawability_delay": 256,
"shard_committee_period": 64,
"shard_committee_period": 64,
"altair_fork_epoch": 0,
"bellatrix_fork_epoch": 0,
"capella_fork_epoch": 0,
"deneb_fork_epoch": 0,
"deneb_fork_epoch": 0,
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
"electra_fork_epoch": constants.ELECTRA_FORK_EPOCH,
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
"fulu_fork_epoch": constants.FULU_FORK_EPOCH,
...
...
src/package_io/sanity_check.star
View file @
d7e31e01
...
@@ -153,6 +153,9 @@ SUBCATEGORY_PARAMS = {
...
@@ -153,6 +153,9 @@ SUBCATEGORY_PARAMS = {
"eth1_follow_distance",
"eth1_follow_distance",
"min_validator_withdrawability_delay",
"min_validator_withdrawability_delay",
"shard_committee_period",
"shard_committee_period",
"altair_fork_epoch",
"bellatrix_fork_epoch",
"capella_fork_epoch",
"deneb_fork_epoch",
"deneb_fork_epoch",
"electra_fork_epoch",
"electra_fork_epoch",
"fulu_fork_epoch",
"fulu_fork_epoch",
...
...
src/prelaunch_data_generator/el_cl_genesis/el_cl_genesis_generator.star
View file @
d7e31e01
...
@@ -49,7 +49,7 @@ def generate_el_cl_genesis_data(
...
@@ -49,7 +49,7 @@ def generate_el_cl_genesis_data(
genesis = plan.run_sh(
genesis = plan.run_sh(
name="run-generate-genesis",
name="run-generate-genesis",
description="Creating genesis",
description="Creating genesis",
run="cp /opt/values.env /config/values.env && ./entrypoint.sh all && mkdir /network-configs && mv /data/metadata/* /network-configs/",
run="cp /opt/values.env /config/values.env && ./entrypoint.sh all && mkdir /network-configs && mv /data/metadata/* /network-configs/
&& mv /data/parsed /network-configs/parsed
",
image=image,
image=image,
files=files,
files=files,
store=[
store=[
...
@@ -107,12 +107,16 @@ def new_env_file_for_el_cl_genesis_data(
...
@@ -107,12 +107,16 @@ def new_env_file_for_el_cl_genesis_data(
"ChurnLimitQuotient": network_params.churn_limit_quotient,
"ChurnLimitQuotient": network_params.churn_limit_quotient,
"EjectionBalance": network_params.ejection_balance,
"EjectionBalance": network_params.ejection_balance,
"Eth1FollowDistance": network_params.eth1_follow_distance,
"Eth1FollowDistance": network_params.eth1_follow_distance,
"AltairForkEpoch": network_params.altair_fork_epoch,
"BellatrixForkEpoch": network_params.bellatrix_fork_epoch,
"CapellaForkEpoch": network_params.capella_fork_epoch,
"DenebForkEpoch": network_params.deneb_fork_epoch,
"DenebForkEpoch": network_params.deneb_fork_epoch,
"ElectraForkEpoch": network_params.electra_fork_epoch,
"ElectraForkEpoch": network_params.electra_fork_epoch,
"FuluForkEpoch": network_params.fulu_fork_epoch,
"FuluForkEpoch": network_params.fulu_fork_epoch,
"EIP7594ForkEpoch": network_params.eip7594_fork_epoch,
"EIP7594ForkEpoch": network_params.eip7594_fork_epoch,
"EIP7594ForkVersion": network_params.eip7594_fork_version,
"EIP7594ForkVersion": network_params.eip7594_fork_version,
"GenesisForkVersion": constants.GENESIS_FORK_VERSION,
"GenesisForkVersion": constants.GENESIS_FORK_VERSION,
"AltairForkVersion": constants.ALTAIR_FORK_VERSION,
"BellatrixForkVersion": constants.BELLATRIX_FORK_VERSION,
"BellatrixForkVersion": constants.BELLATRIX_FORK_VERSION,
"CapellaForkVersion": constants.CAPELLA_FORK_VERSION,
"CapellaForkVersion": constants.CAPELLA_FORK_VERSION,
"DenebForkVersion": constants.DENEB_FORK_VERSION,
"DenebForkVersion": constants.DENEB_FORK_VERSION,
...
...
static_files/genesis-generation-config/el-cl/values.env.tmpl
View file @
d7e31e01
...
@@ -7,9 +7,12 @@ export SLOT_DURATION_IN_SECONDS={{ .SecondsPerSlot }}
...
@@ -7,9 +7,12 @@ export SLOT_DURATION_IN_SECONDS={{ .SecondsPerSlot }}
export DEPOSIT_CONTRACT_BLOCK="0x0000000000000000000000000000000000000000000000000000000000000000"
export DEPOSIT_CONTRACT_BLOCK="0x0000000000000000000000000000000000000000000000000000000000000000"
export NUMBER_OF_VALIDATORS={{ .NumValidatorKeysToPreregister }}
export NUMBER_OF_VALIDATORS={{ .NumValidatorKeysToPreregister }}
export GENESIS_FORK_VERSION="{{ .GenesisForkVersion }}"
export GENESIS_FORK_VERSION="{{ .GenesisForkVersion }}"
export ALTAIR_FORK_VERSION="0x20000038"
export ALTAIR_FORK_VERSION="{{ .AltairForkVersion }}"
export ALTAIR_FORK_EPOCH="{{ .AltairForkEpoch }}"
export BELLATRIX_FORK_VERSION="{{ .BellatrixForkVersion }}"
export BELLATRIX_FORK_VERSION="{{ .BellatrixForkVersion }}"
export BELLATRIX_FORK_EPOCH="{{ .BellatrixForkEpoch }}"
export CAPELLA_FORK_VERSION="{{ .CapellaForkVersion }}"
export CAPELLA_FORK_VERSION="{{ .CapellaForkVersion }}"
export CAPELLA_FORK_EPOCH="{{ .CapellaForkEpoch }}"
export DENEB_FORK_VERSION="{{ .DenebForkVersion }}"
export DENEB_FORK_VERSION="{{ .DenebForkVersion }}"
export DENEB_FORK_EPOCH="{{ .DenebForkEpoch }}"
export DENEB_FORK_EPOCH="{{ .DenebForkEpoch }}"
export ELECTRA_FORK_VERSION="{{ .ElectraForkVersion }}"
export ELECTRA_FORK_VERSION="{{ .ElectraForkVersion }}"
...
...
vicotor
@luxueqian
mentioned in commit
e957062f
·
Apr 13, 2025
mentioned in commit
e957062f
mentioned in commit e957062f619b4c8503c2c41cd7f51dbdb48a4ed3
Toggle commit list
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