Skip to content

Commit 49ddb40

Browse files
authored
Portal: Remove client field from ENR (#3920)
This field is no longer needed/used to check which client runs. Instead the ping extensions are used to retrieve the client information.
1 parent 6bc56df commit 49ddb40

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

portal/client/nimbus_portal_client.nim

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,7 @@ proc run(portalClient: PortalClient, config: PortalConf) {.raises: [CatchableErr
150150
Opt.none(Port),
151151
extUdpPort,
152152
Opt.none(Port),
153-
# Note: usage of the client field "c" is replaced with ping extensions client_info.
154-
# This can be removed in the future when no more tooling relies on it.
155-
localEnrFields = [
156-
toFieldPair("c", enrClientInfoShort),
157-
toFieldPair(portalEnrKey, getPortalEnrField(config.network)),
158-
],
153+
localEnrFields = [toFieldPair(portalEnrKey, getPortalEnrField(config.network))],
159154
bootstrapRecords = bootstrapRecords,
160155
previousRecord = previousEnr,
161156
bindIp = Opt.some(bindIp),

portal/tools/portalcli.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Nimbus
2-
# Copyright (c) 2021-2025 Status Research & Development GmbH
2+
# Copyright (c) 2021-2026 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -239,13 +239,13 @@ proc run(config: PortalCliConf) =
239239
extIp,
240240
Opt.none(Port),
241241
extUdpPort,
242+
Opt.none(Port),
242243
localEnrFields = {portalEnrKey: rlp.encode(localPortalEnrField)},
243244
bootstrapRecords = bootstrapRecords,
244-
bindIp = bindIp,
245+
bindIp = Opt.some(bindIp),
245246
bindPort = udpPort,
246247
enrAutoUpdate = config.enrAutoUpdate,
247248
rng = rng,
248-
banNodes = true,
249249
)
250250

251251
d.open()

0 commit comments

Comments
 (0)