Skip to content

Commit 1d4e943

Browse files
authored
feat: make genesis electra (#940)
Signed-off-by: Barnabas Busa <[email protected]>
1 parent a9247f3 commit 1d4e943

File tree

9 files changed

+14
-51
lines changed

9 files changed

+14
-51
lines changed

.github/tests/eof-fulu.yaml.norun

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ participants:
1515
global_log_level: info
1616

1717
network_params:
18-
electra_fork_epoch: 1
19-
fulu_fork_epoch: 2
18+
fulu_fork_epoch: 1
2019
seconds_per_slot: 4
2120

2221
additional_services:

.github/tests/eof.yaml.norun

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ participants:
55
cl_type: teku
66
cl_image: ethpandaops/teku:master
77
network_params:
8-
electra_fork_epoch: 1
9-
fulu_fork_epoch: 2
8+
fulu_fork_epoch: 1
109
preset: minimal
1110
additional_services:
1211
- dora

.github/tests/mev-pectra.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ mev_params:
5151
mev_builder_subsidy: 1
5252

5353
network_params:
54-
electra_fork_epoch: 0
5554
min_validator_withdrawability_delay: 1
5655
shard_committee_period: 1
5756
churn_limit_quotient: 16

.github/tests/peerdas-fulu.yaml.norun

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ participants:
6868
global_log_level: debug
6969

7070
network_params:
71-
electra_fork_epoch: 1
72-
fulu_fork_epoch: 2
71+
fulu_fork_epoch: 1
7372

7473
additional_services:
7574
- dora

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ network_params:
557557
deneb_fork_epoch: 0
558558

559559
# Electra fork epoch
560-
# Defaults to 18446744073709551615
561-
electra_fork_epoch: 18446744073709551615
560+
# Defaults to 0
561+
electra_fork_epoch: 0
562562

563563
# Fulu fork epoch
564564
# Defaults to 18446744073709551615

main.star

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,6 @@ def run(plan, args={}):
465465
global_node_selectors,
466466
)
467467
plan.print("Successfully launched tx-fuzz")
468-
# We need a way to do time.sleep
469-
# TODO add code that waits for CL genesis
470468
elif additional_service == "forkmon":
471469
plan.print("Launching el forkmon")
472470
forkmon_config_template = read_file(

network_params.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ network_params:
8686
min_validator_withdrawability_delay: 256
8787
shard_committee_period: 256
8888
deneb_fork_epoch: 0
89-
electra_fork_epoch: 18446744073709551615
89+
electra_fork_epoch: 0
9090
fulu_fork_epoch: 18446744073709551615
9191
network_sync_base_url: https://snapshots.ethpandaops.io/
9292
force_snapshot_sync: false

src/el/geth/geth_launcher.star

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -124,28 +124,11 @@ def get_config(
124124
gcmode_archive = True
125125
else:
126126
gcmode_archive = False
127-
# TODO: Remove this once electra fork has path based storage scheme implemented
128-
if (
129-
constants.NETWORK_NAME.verkle in network_params.network
130-
) and constants.NETWORK_NAME.shadowfork not in network_params.network:
131-
if (
132-
constants.NETWORK_NAME.verkle + "-gen" in network_params.network
133-
): # verkle-gen
134-
init_datadir_cmd_str = "geth --datadir={0} --cache.preimages --override.prague={1} init {2}".format(
135-
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
136-
launcher.prague_time,
137-
constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json",
138-
)
139-
else: # verkle
140-
init_datadir_cmd_str = (
141-
"geth --datadir={0} --cache.preimages init {1}".format(
142-
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
143-
constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json",
144-
)
145-
)
146-
elif constants.NETWORK_NAME.shadowfork in network_params.network: # shadowfork
127+
128+
if constants.NETWORK_NAME.shadowfork in network_params.network: # shadowfork
147129
init_datadir_cmd_str = "echo shadowfork"
148130

131+
# TODO: Remove once archive mode works with path based storage scheme
149132
elif gcmode_archive: # Disable path based storage scheme archive mode
150133
init_datadir_cmd_str = "geth init --state.scheme=hash --datadir={0} {1}".format(
151134
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
@@ -197,15 +180,8 @@ def get_config(
197180

198181
cmd = [
199182
"geth",
200-
# Disable path based storage scheme for electra fork and verkle
201183
# TODO: REMOVE Once geth default db is path based, and builder rebased
202-
"{0}".format(
203-
"--state.scheme=hash"
204-
if "verkle" in network_params.network or gcmode_archive
205-
else ""
206-
),
207-
# Override prague fork timestamp for electra fork
208-
"{0}".format("--cache.preimages" if "verkle" in network_params.network else ""),
184+
"{0}".format("--state.scheme=hash" if gcmode_archive else ""),
209185
"{0}".format(
210186
"--{}".format(network_params.network)
211187
if network_params.network in constants.PUBLIC_NETWORKS
@@ -278,11 +254,8 @@ def get_config(
278254
)
279255
)
280256
if constants.NETWORK_NAME.shadowfork in network_params.network: # shadowfork
281-
cmd.append("--override.prague=" + str(launcher.prague_time))
282-
if "verkle" in network_params.network: # verkle-shadowfork
283-
cmd.append("--override.overlay-stride=10000")
284-
cmd.append("--override.blockproof=true")
285-
cmd.append("--clear.verkle.costs=true")
257+
if launcher.prague_time:
258+
cmd.append("--override.prague=" + str(launcher.prague_time))
286259

287260
elif (
288261
network_params.network not in constants.PUBLIC_NETWORKS

src/package_io/input_parser.star

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ DEFAULT_REMOTE_SIGNER_IMAGES = {
5858
"web3signer": "consensys/web3signer:latest",
5959
}
6060

61-
# Placeholder value for the deneb fork epoch if electra is being run
62-
# TODO: This is a hack, and should be removed once we electra is rebased on deneb
63-
HIGH_DENEB_VALUE_FORK_VERKLE = 2000000000
64-
6561
# MEV Params
6662
MEV_BOOST_PORT = 18550
6763
MEV_BOOST_SERVICE_NAME_PREFIX = "mev-boost"
@@ -935,7 +931,7 @@ def default_network_params():
935931
"bellatrix_fork_epoch": 0,
936932
"capella_fork_epoch": 0,
937933
"deneb_fork_epoch": 0,
938-
"electra_fork_epoch": constants.FAR_FUTURE_EPOCH,
934+
"electra_fork_epoch": 0,
939935
"fulu_fork_epoch": constants.FAR_FUTURE_EPOCH,
940936
"eip7732_fork_epoch": constants.FAR_FUTURE_EPOCH,
941937
"eip7805_fork_epoch": constants.FAR_FUTURE_EPOCH,
@@ -981,7 +977,7 @@ def default_minimal_network_params():
981977
"bellatrix_fork_epoch": 0,
982978
"capella_fork_epoch": 0,
983979
"deneb_fork_epoch": 0,
984-
"electra_fork_epoch": constants.FAR_FUTURE_EPOCH,
980+
"electra_fork_epoch": 0,
985981
"fulu_fork_epoch": constants.FAR_FUTURE_EPOCH,
986982
"eip7732_fork_epoch": constants.FAR_FUTURE_EPOCH,
987983
"eip7805_fork_epoch": constants.FAR_FUTURE_EPOCH,

0 commit comments

Comments
 (0)