From 7c1c04674c7122d549482b70fc07cf621d14ecd2 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 22 Oct 2021 03:14:31 -0300 Subject: [PATCH] dont lose results on duplicates, just warn --- lbry/dht/protocol/iterative_find.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lbry/dht/protocol/iterative_find.py b/lbry/dht/protocol/iterative_find.py index 9e11438bd..fc523f480 100644 --- a/lbry/dht/protocol/iterative_find.py +++ b/lbry/dht/protocol/iterative_find.py @@ -346,7 +346,6 @@ class IterativeValueFinder(IterativeFinder): already_known + len(parsed.found_compact_addresses)) if len(self.discovered_peers[peer]) != already_known + len(parsed.found_compact_addresses): log.warning("misbehaving peer %s:%i returned duplicate peers for blob", peer.address, peer.udp_port) - parsed.found_compact_addresses.clear() elif len(parsed.found_compact_addresses) >= constants.K and self.peer_pages[peer] < parsed.pages: # the peer returned a full page and indicates it has more self.peer_pages[peer] += 1