diff --git a/CHANGELOG.md b/CHANGELOG.md index 647f1c7bc..9e417c1df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ at anytime. * Remove manual saving of the wallet in from lbrynet, let lbryum handle it * Block wallet startup on being unlocked if it is encrypted * Use reworked lbryum payto command + * Re-attempt joining the DHT every 60 secs if the Node has no peers ### Added * Add link to instructions on how to change the default peer port diff --git a/lbrynet/core/client/DHTPeerFinder.py b/lbrynet/core/client/DHTPeerFinder.py index 1682006cb..f273e5900 100644 --- a/lbrynet/core/client/DHTPeerFinder.py +++ b/lbrynet/core/client/DHTPeerFinder.py @@ -34,8 +34,15 @@ class DHTPeerFinder(object): self.next_manage_call.cancel() self.next_manage_call = None + @defer.inlineCallbacks def _manage_peers(self): - pass + """ + If we don't know any active peer, let's try to reconnect to the preconfigured + known DHT nodes + """ + if not self.dht_node.hasContacts(): + log.info("No active peer. Re-attempt joining DHT") + yield self.dht_node.join_dht() @defer.inlineCallbacks def find_peers_for_blob(self, blob_hash, timeout=None, filter_self=False):