Skip to content

Commit cda5dda

Browse files
fix: ignore bootnodes if in shadowfork (ethereum#660)
Signed-off-by: Barnabas Busa <[email protected]> Signed-off-by: Barnabas Busa <[email protected]> Signed-off-by: Parithosh Jayanthi <[email protected]> Co-authored-by: parithosh <[email protected]>
1 parent 1acc201 commit cda5dda

File tree

13 files changed

+73
-43
lines changed

13 files changed

+73
-43
lines changed

.github/tests/sepolia-mix.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ participants:
44
- el_type: nethermind
55
cl_type: prysm
66
- el_type: erigon
7-
el_image: ethpandaops/erigon:devel-d754b29 # this is a temp fix, till upstream is fixed
87
cl_type: lighthouse
98
- el_type: besu
109
cl_type: lighthouse

.github/workflows/nightly.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ jobs:
1616
# List all yaml files in the .github/tests directory, except for the k8s.yaml file
1717
run: echo "matrix=$(ls ./.github/tests/*.yaml | grep -vE 'k8s.yaml$' | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
1818
run_with_args:
19-
needs: list-yamls
19+
needs:
20+
- list-yamls
2021
strategy:
2122
matrix:
2223
file_name: ${{ fromJson(needs.list-yamls.outputs.matrix) }}
2324
runs-on: ubuntu-latest
2425
continue-on-error: true
2526
steps:
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
29+
with:
30+
username: ${{ secrets.DOCKER_USERNAME }}
31+
password: ${{ secrets.DOCKER_PASSWORD }}
2632
- name: Checkout Repository
2733
uses: actions/checkout@v4
28-
2934
- name: Setup Kurtosis
3035
run: |
3136
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
@@ -52,6 +57,11 @@ jobs:
5257
assertoor-mix-assert:
5358
runs-on: ubuntu-latest
5459
steps:
60+
- name: Login to Docker Hub
61+
uses: docker/login-action@v3
62+
with:
63+
username: ${{ secrets.DOCKER_USERNAME }}
64+
password: ${{ secrets.DOCKER_PASSWORD }}
5565
- name: Checkout Repository
5666
uses: actions/checkout@v4
5767
- name: Extract branch name

.github/workflows/per-pr.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ jobs:
1111
run_starlark:
1212
runs-on: self-hosted-ghr-size-l-x64
1313
steps:
14+
- name: Login to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
1419
- name: Checkout Repository
1520
uses: actions/checkout@v4
16-
1721
- name: Setup Kurtosis
1822
run: |
1923
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
@@ -39,9 +43,13 @@ jobs:
3943
]
4044
runs-on: self-hosted-ghr-size-l-x64
4145
steps:
46+
- name: Login to Docker Hub
47+
uses: docker/login-action@v3
48+
with:
49+
username: ${{ secrets.DOCKER_USERNAME }}
50+
password: ${{ secrets.DOCKER_PASSWORD }}
4251
- name: Checkout Repository
4352
uses: actions/checkout@v4
44-
4553
- name: Setup Kurtosis
4654
run: |
4755
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
@@ -57,7 +65,6 @@ jobs:
5765
steps:
5866
- name: Checkout Repository
5967
uses: actions/checkout@v4
60-
6168
- name: Setup Kurtosis
6269
run: |
6370
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
@@ -72,6 +79,11 @@ jobs:
7279
runs-on: self-hosted-ghr-size-l-x64
7380
timeout-minutes: 30
7481
steps:
82+
- name: Login to Docker Hub
83+
uses: docker/login-action@v3
84+
with:
85+
username: ${{ secrets.DOCKER_USERNAME }}
86+
password: ${{ secrets.DOCKER_PASSWORD }}
7587
- name: Checkout Repository
7688
uses: actions/checkout@v4
7789
- name: Kurtosis Assertoor GitHub Action

src/el/besu/besu_launcher.star

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,9 @@ def get_config(
229229
"--metrics-host=0.0.0.0",
230230
"--metrics-port={0}".format(METRICS_PORT_NUM),
231231
"--min-gas-price=1000000000",
232-
"--bonsai-limit-trie-logs-enabled=false",
232+
"--bonsai-limit-trie-logs-enabled=false" if "verkle" not in network else "",
233233
]
234-
if (
235-
network not in constants.PUBLIC_NETWORKS
236-
or constants.NETWORK_NAME.shadowfork in network
237-
):
234+
if network not in constants.PUBLIC_NETWORKS:
238235
cmd.append(
239236
"--genesis-file="
240237
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
@@ -254,7 +251,10 @@ def get_config(
254251
]
255252
)
256253
)
257-
elif network not in constants.PUBLIC_NETWORKS:
254+
elif (
255+
network not in constants.PUBLIC_NETWORKS
256+
and constants.NETWORK_NAME.shadowfork not in network
257+
):
258258
cmd.append(
259259
"--bootnodes="
260260
+ shared_utils.get_devnet_enodes(

src/el/erigon/erigon_launcher.star

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,6 @@ def get_config(
209209

210210
cmd = [
211211
"erigon",
212-
"{0}".format(
213-
"--override.cancun=" + str(cancun_time)
214-
if constants.NETWORK_NAME.shadowfork in network
215-
else ""
216-
),
217212
"--networkid={0}".format(networkid),
218213
"--log.console.verbosity=" + verbosity_level,
219214
"--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
@@ -259,7 +254,10 @@ def get_config(
259254
]
260255
)
261256
)
262-
elif network not in constants.PUBLIC_NETWORKS:
257+
elif (
258+
network not in constants.PUBLIC_NETWORKS
259+
and constants.NETWORK_NAME.shadowfork not in network
260+
):
263261
cmd.append(
264262
"--bootnodes="
265263
+ shared_utils.get_devnet_enodes(

src/el/ethereumjs/ethereumjs_launcher.star

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ def get_config(
242242
]
243243
)
244244
)
245-
elif network not in constants.PUBLIC_NETWORKS:
245+
elif (
246+
network not in constants.PUBLIC_NETWORKS
247+
and constants.NETWORK_NAME.shadowfork not in network
248+
):
246249
cmd.append(
247250
"--bootnodes="
248251
+ shared_utils.get_devnet_enodes(

src/el/geth/geth_launcher.star

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ def get_config(
272272
"{0}".format(
273273
"--{}".format(network) if network in constants.PUBLIC_NETWORKS else ""
274274
),
275-
"{0}".format(
276-
"--override.cancun=" + str(cancun_time)
277-
if constants.NETWORK_NAME.shadowfork in network
278-
else ""
279-
),
280275
"--networkid={0}".format(networkid),
281276
"--verbosity=" + verbosity_level,
282277
"--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
@@ -343,7 +338,10 @@ def get_config(
343338
cmd.append("--override.overlay-stride=10000")
344339
cmd.append("--override.blockproof=true")
345340
cmd.append("--clear.verkle.costs=true")
346-
elif network not in constants.PUBLIC_NETWORKS:
341+
elif (
342+
network not in constants.PUBLIC_NETWORKS
343+
and constants.NETWORK_NAME.shadowfork not in network
344+
):
347345
cmd.append(
348346
"--bootnodes="
349347
+ shared_utils.get_devnet_enodes(

src/el/nethermind/nethermind_launcher.star

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,21 @@ def get_config(
218218
"--Metrics.ExposeHost=0.0.0.0",
219219
]
220220

221-
if network not in constants.PUBLIC_NETWORKS:
222-
cmd.append("--config=none.cfg")
221+
if constants.NETWORK_NAME.shadowfork in network:
223222
cmd.append(
224223
"--Init.ChainSpecPath="
225224
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
226225
+ "/chainspec.json"
227226
)
228-
elif constants.NETWORK_NAME.shadowfork in network:
227+
cmd.append("--config=" + network.split("-")[0])
228+
cmd.append("--Init.BaseDbPath=" + network.split("-")[0])
229+
elif network not in constants.PUBLIC_NETWORKS:
230+
cmd.append("--config=none.cfg")
229231
cmd.append(
230232
"--Init.ChainSpecPath="
231233
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
232234
+ "/chainspec.json"
233235
)
234-
cmd.append("--config=" + network)
235236
else:
236237
cmd.append("--config=" + network)
237238

@@ -249,7 +250,10 @@ def get_config(
249250
]
250251
)
251252
)
252-
elif network not in constants.PUBLIC_NETWORKS:
253+
elif (
254+
network not in constants.PUBLIC_NETWORKS
255+
and constants.NETWORK_NAME.shadowfork not in network
256+
):
253257
cmd.append(
254258
"--Discovery.Bootnodes="
255259
+ shared_utils.get_devnet_enodes(

src/el/nimbus-eth1/nimbus_launcher.star

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ def get_config(
218218
"--nat=extip:{0}".format(port_publisher.nat_exit_ip),
219219
"--tcp-port={0}".format(discovery_port),
220220
]
221-
if (
222-
network not in constants.PUBLIC_NETWORKS
223-
or constants.NETWORK_NAME.shadowfork in network
224-
):
221+
if network not in constants.PUBLIC_NETWORKS:
225222
cmd.append(
226223
"--custom-network="
227224
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
@@ -241,7 +238,10 @@ def get_config(
241238
]
242239
)
243240
)
244-
elif network not in constants.PUBLIC_NETWORKS:
241+
elif (
242+
network not in constants.PUBLIC_NETWORKS
243+
and constants.NETWORK_NAME.shadowfork not in network
244+
):
245245
cmd.append(
246246
"--bootstrap-node="
247247
+ shared_utils.get_devnet_enodes(

src/el/reth/reth_launcher.star

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ def get_config(
245245
]
246246
)
247247
)
248-
elif network not in constants.PUBLIC_NETWORKS:
248+
elif (
249+
network not in constants.PUBLIC_NETWORKS
250+
and constants.NETWORK_NAME.shadowfork not in network
251+
):
249252
cmd.append(
250253
"--bootnodes="
251254
+ shared_utils.get_devnet_enodes(

0 commit comments

Comments
 (0)