Skip to content

Commit c5d4028

Browse files
authored
fix: disable static peers (ethereum#529)
1 parent ad7773e commit c5d4028

File tree

7 files changed

+3
-39
lines changed

7 files changed

+3
-39
lines changed

src/cl/lighthouse/lighthouse_launcher.star

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,6 @@ def get_beacon_config(
317317
]
318318
)
319319
)
320-
cmd.append(
321-
"--trusted-peers="
322-
+ ",".join(
323-
[
324-
ctx.peer_id
325-
for ctx in boot_cl_client_ctxs[: constants.MAX_ENR_ENTRIES]
326-
]
327-
)
328-
)
329320
elif network == constants.NETWORK_NAME.ephemery:
330321
cmd.append(
331322
"--checkpoint-sync-url=" + constants.CHECKPOINT_SYNC_URL[network]

src/cl/nimbus/nimbus_launcher.star

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def get_beacon_config(
329329
else:
330330
for ctx in bootnode_contexts[: constants.MAX_ENR_ENTRIES]:
331331
cmd.append("--bootstrap-node=" + ctx.enr)
332-
cmd.append("--direct-peer=" + ctx.multiaddr)
333332

334333
if len(extra_params) > 0:
335334
cmd.extend([param for param in extra_params])

src/cl/prysm/prysm_launcher.star

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ def get_beacon_config(
274274
):
275275
if bootnode_contexts != None:
276276
for ctx in bootnode_contexts[: constants.MAX_ENR_ENTRIES]:
277-
cmd.append("--peer=" + ctx.multiaddr)
278277
cmd.append("--bootstrap-node=" + ctx.enr)
279278
elif network == constants.NETWORK_NAME.ephemery:
280279
cmd.append(

src/cl/teku/teku_launcher.star

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,6 @@ def get_beacon_config(
335335
]
336336
)
337337
)
338-
cmd.append(
339-
"--p2p-static-peers="
340-
+ ",".join(
341-
[
342-
ctx.multiaddr
343-
for ctx in bootnode_contexts[: constants.MAX_ENR_ENTRIES]
344-
]
345-
)
346-
)
347338
elif network == constants.NETWORK_NAME.ephemery:
348339
cmd.append(
349340
"--checkpoint-sync-url=" + constants.CHECKPOINT_SYNC_URL[network]

src/el/erigon/erigon_launcher.star

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -239,28 +239,13 @@ def get_config(
239239
]
240240
)
241241
)
242-
cmd.append(
243-
"--staticpeers="
244-
+ ",".join(
245-
[
246-
ctx.enode
247-
for ctx in existing_el_clients[: constants.MAX_ENODE_ENTRIES]
248-
]
249-
)
250-
)
251242
elif network not in constants.PUBLIC_NETWORKS:
252243
cmd.append(
253244
"--bootnodes="
254245
+ shared_utils.get_devnet_enodes(
255246
plan, el_cl_genesis_data.files_artifact_uuid
256247
)
257248
)
258-
cmd.append(
259-
"--staticpeers="
260-
+ shared_utils.get_devnet_enodes(
261-
plan, el_cl_genesis_data.files_artifact_uuid
262-
)
263-
)
264249

265250
if len(extra_params) > 0:
266251
cmd.extend([param for param in extra_params])

src/el/nethermind/nethermind_launcher.star

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def get_config(
187187
"--Network.DiscoveryPort={0}".format(DISCOVERY_PORT_NUM),
188188
"--Network.P2PPort={0}".format(DISCOVERY_PORT_NUM),
189189
"--JsonRpc.JwtSecretFile=" + constants.JWT_MOUNT_PATH_ON_CONTAINER,
190-
"--Network.OnlyStaticPeers=true",
191190
"--Metrics.Enabled=true",
192191
"--Metrics.ExposePort={0}".format(METRICS_PORT_NUM),
193192
"--Metrics.ExposeHost=0.0.0.0",
@@ -216,7 +215,7 @@ def get_config(
216215
):
217216
if len(existing_el_clients) > 0:
218217
cmd.append(
219-
"--Network.StaticPeers="
218+
"--Discovery.Bootnodes="
220219
+ ",".join(
221220
[
222221
ctx.enode
@@ -226,7 +225,7 @@ def get_config(
226225
)
227226
elif network not in constants.PUBLIC_NETWORKS:
228227
cmd.append(
229-
"--Network.StaticPeers="
228+
"--Discovery.Bootnodes="
230229
+ shared_utils.get_devnet_enodes(
231230
plan, el_cl_genesis_data.files_artifact_uuid
232231
)

src/package_io/constants.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ELECTRA_FORK_VERSION = "0x60000038"
7575

7676
ETHEREUM_GENESIS_GENERATOR = struct(
7777
capella_genesis="ethpandaops/ethereum-genesis-generator:2.0.12", # Deprecated (no support for minimal config)
78-
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.0.2", # Default
78+
deneb_genesis="ethpandaops/ethereum-genesis-generator:3.0.3", # Default
7979
verkle_support_genesis="ethpandaops/ethereum-genesis-generator:3.0.0-rc.19", # soon to be deneb genesis, waiting for rebase
8080
verkle_genesis="ethpandaops/ethereum-genesis-generator:verkle-gen-v1.0.0",
8181
)

0 commit comments

Comments
 (0)