From 0b3337ca092f92bf908fececd0f4a657912100df Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 1 May 2026 13:57:21 +0400 Subject: [PATCH] Remove clientMode checking in addProvider --- codexdht/private/eth/p2p/discoveryv5/protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codexdht/private/eth/p2p/discoveryv5/protocol.nim b/codexdht/private/eth/p2p/discoveryv5/protocol.nim index f16e0c0..d3dc632 100644 --- a/codexdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/codexdht/private/eth/p2p/discoveryv5/protocol.nim @@ -735,7 +735,7 @@ proc addProvider*( var res = await d.lookup(cId) # TODO: lookup is specified as not returning local, even if that is the closest. Is this OK? - if res.len == 0 and not d.clientMode: + if res.len == 0: res.add(d.localNode) for toNode in res: if toNode != d.localNode: