From adca5f59936fbea40ef17c0033e7b2187217a696 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 6 Jun 2018 17:18:48 -0400 Subject: [PATCH] fix routing_table_get --- lbrynet/daemon/Daemon.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 83ba743da..6fa9fb148 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -3150,18 +3150,13 @@ class Daemon(AuthJSONRPCServer): """ result = {} - data_store = deepcopy(self.session.dht_node._dataStore._dict) + data_store = self.session.dht_node._dataStore._dict datastore_len = len(data_store) hosts = {} if datastore_len: for k, v in data_store.iteritems(): - for value, lastPublished, originallyPublished, originalPublisherID in v: - try: - contact = self.session.dht_node._routingTable.getContact( - originalPublisherID) - except (ValueError, IndexError): - continue + for contact, value, lastPublished, originallyPublished, originalPublisherID in v: if contact in hosts: blobs = hosts[contact] else: