From b380f5d34483b625c53abe199c2f90706f525c3a Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 3 Nov 2017 12:13:52 -0400 Subject: [PATCH] completely remove unused from_peer field --- lbrynet/dht/node.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/dht/node.py b/lbrynet/dht/node.py index 76d9056b3..0d094e4e7 100644 --- a/lbrynet/dht/node.py +++ b/lbrynet/dht/node.py @@ -365,7 +365,7 @@ class Node(object): # Ok, we have the value locally, so use that peers = self._dataStore.getPeersForBlob(key) # Send this value to the closest node without it - outerDf.callback({key: peers, "from_peer": 'self'}) + outerDf.callback({key: peers}) else: # Ok, value does not exist in DHT at all outerDf.callback(result) @@ -705,7 +705,6 @@ class _IterativeFindHelper(object): if self.find_value is True and self.key in result and not 'contacts' in result: # We have found the value self.find_value_result[self.key] = result[self.key] - self.find_value_result['from_peer'] = aContact.address else: if self.find_value is True: self._setClosestNodeValue(responseMsg, aContact)