Tone down annoying discovery messages

This commit is contained in:
Yuriy Glukhov 2019-03-28 17:55:41 +02:00 committed by zah
parent d678762c50
commit dcb82f6a96
1 changed files with 2 additions and 2 deletions

View File

@ -451,14 +451,14 @@ proc recvNeighbours*(k: KademliaProtocol, remote: Node, neighbours: seq[Node]) =
if not cb.isNil: if not cb.isNil:
cb(neighbours) cb(neighbours)
else: else:
debug "Unexpected neighbours, probably came too late", remote trace "Unexpected neighbours, probably came too late", remote
proc recvFindNode*(k: KademliaProtocol, remote: Node, nodeId: NodeId) = proc recvFindNode*(k: KademliaProtocol, remote: Node, nodeId: NodeId) =
if remote notin k.routing: if remote notin k.routing:
# FIXME: This is not correct; a node we've bonded before may have become unavailable # FIXME: This is not correct; a node we've bonded before may have become unavailable
# and thus removed from self.routing, but once it's back online we should accept # and thus removed from self.routing, but once it's back online we should accept
# find_nodes from them. # find_nodes from them.
debug "Ignoring find_node request from unknown node ", remote trace "Ignoring find_node request from unknown node ", remote
return return
k.updateRoutingTable(remote) k.updateRoutingTable(remote)
var found = k.routing.neighbours(nodeId) var found = k.routing.neighbours(nodeId)