From 304f0c089d5879c686a07db6509c4a4edf9c3dd3 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 12 Sep 2023 11:35:49 +0200 Subject: [PATCH] keyexchangeInProgress: do not remove on handshake received This is the wrong direction, not needed Signed-off-by: Csaba Kiraly --- libp2pdht/private/eth/p2p/discoveryv5/transport.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim index a7c2bc6..d6f5067 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim @@ -207,8 +207,6 @@ proc receive*(t: Transport, a: Address, packet: openArray[byte]) = node.seen = true if t.client.addNode(node): trace "Added new node to routing table after handshake", node, tablesize=t.client.nodesDiscovered() - # handshake finished, TODO: should this be inside the if above? - t.keyexchangeInProgress.excl(node.id) discard t.sendPending(node) else: trace "Packet decoding error", myport = t.bindAddress.port, error = decoded.error, address = a