forked from LBRYCommunity/lbry-sdk
only return good (contacted) peers
This commit is contained in:
parent
6ba8f96511
commit
44c4b03d44
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class IterativeNodeFinder(IterativeFinder):
|
|||
peer for peer in from_iter
|
||||
if peer not in self.yielded_peers
|
||||
and peer.node_id != self.protocol.node_id
|
||||
and self.peer_manager.peer_is_good(peer) is not False
|
||||
and self.peer_manager.peer_is_good(peer) is True # return only peers who answered
|
||||
]
|
||||
not_yet_yielded.sort(key=lambda peer: self.distance(peer.node_id))
|
||||
to_yield = not_yet_yielded[:max(constants.K, self.max_results)]
|
||||
|
|
Loading…
Reference in a new issue