Skip to content

Commit eb4af7e

Browse files
authored
fix: pass an empty bootnodes flag to the first geth node (#1539)
Fixes #1538. When geth is the first execution client of a `kurtosis` or shadowfork network and there is no bootnodoor ENR, the launcher added no `--bootnodes` flag, so geth fell back to its built-in public bootnodes instead of an empty list. The geth launcher now passes an empty `--bootnodes=` on these paths when there is no ENR to hand it, which is what #1133 did before #1461 made the flag conditional. Tested with two geth/lighthouse participants on the minimal preset and `--netrestrict` set to private ranges: before the change the first geth logged `Bootstrap node filtered by netrestrict` 20 times for public addresses, after it the first geth starts with `--bootnodes=`, logs none, and still peers with the second node.
1 parent 90d0f4e commit eb4af7e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/el/geth/geth_launcher.star‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def get_config(
185185
)
186186
if bootnode_arg != None:
187187
cmd.append(bootnode_arg)
188+
elif (
189+
network_params.network == constants.NETWORK_NAME.kurtosis
190+
or constants.NETWORK_NAME.shadowfork in network_params.network
191+
):
192+
cmd.append("--bootnodes=")
188193

189194
if otel_otlp_grpc_url != None:
190195
cmd.append("--rpc.telemetry")

0 commit comments

Comments
 (0)