From d14eb24141bd02d995785d63b02a81927de5ac50 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 29 Sep 2021 23:09:13 -0300 Subject: [PATCH] always add itself --- lbry/dht/protocol/protocol.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbry/dht/protocol/protocol.py b/lbry/dht/protocol/protocol.py index 66165740b..e44834d4e 100644 --- a/lbry/dht/protocol/protocol.py +++ b/lbry/dht/protocol/protocol.py @@ -96,8 +96,7 @@ class KademliaRPC: if not rpc_contact.tcp_port or peer.compact_address_tcp() != rpc_contact.compact_address_tcp() ] # if we don't have k storing peers to return and we have this hash locally, include our contact information - if len(peers) < constants.K and key.hex() in self.protocol.data_store.completed_blobs: - peers.append(self.compact_address()) + peers.append(self.compact_address()) if not peers: response[PAGE_KEY] = 0 else: