mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-02-12 03:47:07 +00:00
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:
parent
4cf0ac30d0
commit
304f0c089d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user