Skip to content

Commit d7e31e0

Browse files
authored
feat: support older forks (ethereum#846)
1 parent 6b7b019 commit d7e31e0

File tree

14 files changed

+193
-28
lines changed

14 files changed

+193
-28
lines changed

.github/tests/altair-genesis.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 0
18+
bellatrix_fork_epoch: 1
19+
capella_fork_epoch: 2
20+
deneb_fork_epoch: 3
21+
electra_fork_epoch: 4
22+
fulu_fork_epoch: 5
23+
genesis_delay: 120
24+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 0
18+
bellatrix_fork_epoch: 0
19+
capella_fork_epoch: 1
20+
deneb_fork_epoch: 2
21+
electra_fork_epoch: 3
22+
fulu_fork_epoch: 4
23+
genesis_delay: 120

.github/tests/capella-genesis.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 0
18+
bellatrix_fork_epoch: 0
19+
capella_fork_epoch: 0
20+
deneb_fork_epoch: 1
21+
electra_fork_epoch: 2
22+
fulu_fork_epoch: 3
23+
genesis_delay: 120

.github/tests/dencun-genesis.yaml renamed to .github/tests/deneb-genesis.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ participants:
1212
- el_type: ethereumjs
1313
cl_type: teku
1414
network_params:
15+
altair_fork_epoch: 0
16+
bellatrix_fork_epoch: 0
17+
capella_fork_epoch: 0
1518
deneb_fork_epoch: 0
19+
electra_fork_epoch: 1
20+
fulu_fork_epoch: 2
21+
genesis_delay: 120

.github/tests/deneb.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 0
18+
bellatrix_fork_epoch: 0
19+
capella_fork_epoch: 0
20+
deneb_fork_epoch: 1
21+
electra_fork_epoch: 2
22+
fulu_fork_epoch: 3
23+
preset: minimal

.github/tests/fulu.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 0
18+
bellatrix_fork_epoch: 0
19+
capella_fork_epoch: 0
20+
deneb_fork_epoch: 0
21+
electra_fork_epoch: 0
22+
fulu_fork_epoch: 1
23+
preset: minimal

.github/tests/phase0-genesis.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: teku
4+
- el_type: reth
5+
cl_type: prysm
6+
- el_type: nethermind
7+
cl_type: nimbus
8+
- el_type: besu
9+
cl_type: lighthouse
10+
- el_type: nimbus
11+
cl_type: lodestar
12+
- el_type: erigon
13+
cl_type: grandine
14+
additional_services:
15+
- dora
16+
network_params:
17+
altair_fork_epoch: 1
18+
bellatrix_fork_epoch: 2
19+
capella_fork_epoch: 3
20+
deneb_fork_epoch: 4
21+
electra_fork_epoch: 5
22+
fulu_fork_epoch: 6
23+
genesis_delay: 120

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,14 +536,33 @@ network_params:
536536

537537
# The epoch at which the deneb/electra/eip7594(peerdas) forks are set to occur. Note: PeerDAS and Electra clients are currently
538538
# working on forks. So set either one of the below forks.
539+
# Altair fork epoch
540+
# Defaults to 0
541+
altair_fork_epoch: 0
542+
543+
# Bellatrix fork epoch
544+
# Defaults to 0
545+
bellatrix_fork_epoch: 0
546+
547+
# Capella fork epoch
548+
# Defaults to 0
549+
capella_fork_epoch: 0
550+
551+
# Deneb fork epoch
552+
# Defaults to 0
539553
deneb_fork_epoch: 0
540554

555+
# Electra fork epoch
556+
# Defaults to 100000000
541557
electra_fork_epoch: 100000000
542558

559+
# Fulu fork epoch
560+
# Defaults to 100000001
543561
fulu_fork_epoch: 100000001
544562

563+
# Eip7594 fork epoch
564+
# Defaults to 100000002
545565
eip7594_fork_epoch: 100000002
546-
547566
# The fork version to set if the eip7594 fork is active
548567
eip7594_fork_version: "0x60000038"
549568

src/network_launcher/kurtosis.star

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,17 @@ def launch(
5757

5858
plan.print("Generating EL CL data")
5959

60-
# we are running capella genesis - deprecated
61-
if network_params.deneb_fork_epoch > 0:
62-
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
63-
args_with_right_defaults.docker_cache_params,
64-
constants.ETHEREUM_GENESIS_GENERATOR.capella_genesis,
65-
)
66-
# we are running deneb genesis - default behavior
67-
elif network_params.deneb_fork_epoch == 0:
68-
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
69-
args_with_right_defaults.docker_cache_params,
70-
constants.ETHEREUM_GENESIS_GENERATOR.deneb_genesis,
71-
)
60+
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
61+
args_with_right_defaults.docker_cache_params,
62+
constants.ETHEREUM_GENESIS_GENERATOR.default_genesis_generator_image,
63+
)
7264
# we are running electra - experimental
73-
elif network_params.electra_fork_epoch != None:
65+
if network_params.electra_fork_epoch != None:
7466
if network_params.electra_fork_epoch == 0:
7567
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
7668
args_with_right_defaults.docker_cache_params,
7769
constants.ETHEREUM_GENESIS_GENERATOR.verkle_genesis,
7870
)
79-
else:
80-
ethereum_genesis_generator_image = shared_utils.docker_cache_image_calc(
81-
args_with_right_defaults.docker_cache_params,
82-
constants.ETHEREUM_GENESIS_GENERATOR.verkle_support_genesis,
83-
)
8471
else:
8572
fail(
8673
"Unsupported fork epoch configuration, need to define either deneb_fork_epoch or electra_fork_epoch"

src/package_io/constants.star

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ DEFAULT_MNEMONIC = "giant issue aisle success illegal bike spike question tent b
103103
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
104104

105105
GENESIS_FORK_VERSION = "0x10000038"
106+
ALTAIR_FORK_VERSION = "0x20000038"
106107
BELLATRIX_FORK_VERSION = "0x30000038"
107108
CAPELLA_FORK_VERSION = "0x40000038"
108109
DENEB_FORK_VERSION = "0x50000038"
@@ -123,9 +124,7 @@ CONTAINER_REGISTRY = struct(
123124

124125

125126
ETHEREUM_GENESIS_GENERATOR = struct(
126-
capella_genesis="ethpandaops/ethereum-genesis-generator:2.0.12", # Deprecated (no support for minimal config)
127-
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.4.1", # Default
128-
verkle_support_genesis="ethpandaops/ethereum-genesis-generator:3.0.0-rc.19", # soon to be deneb genesis, waiting for rebase
127+
default_genesis_generator_image="ethpandaops/ethereum-genesis-generator:3.4.3", # Default
129128
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
130129
)
131130

0 commit comments

Comments
 (0)