From 5fe8022b157978b1373c074513075251cdf2229d Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 9 Aug 2018 09:00:36 -0400 Subject: [PATCH] don't attempt to announce blobs until we we have contacts in routing --- lbrynet/dht/hashannouncer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbrynet/dht/hashannouncer.py b/lbrynet/dht/hashannouncer.py index 66ce3306d..e4338b9c9 100644 --- a/lbrynet/dht/hashannouncer.py +++ b/lbrynet/dht/hashannouncer.py @@ -74,6 +74,9 @@ class DHTHashAnnouncer(object): @defer.inlineCallbacks def manage(self): + if not self.dht_node.contacts: + log.info("Not ready to start announcing hashes") + return need_reannouncement = yield self.storage.get_blobs_to_announce() if need_reannouncement: yield self.immediate_announce(need_reannouncement)