keyexchangeInProgress: do not remove on handshake received

This is the wrong direction, not needed

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-09-12 11:35:49 +02:00
parent 4cf0ac30d0
commit 304f0c089d
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E

View File

@ -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