add announce_all_blobs_to_dht

This commit is contained in:
Jack 2016-08-11 12:36:13 -04:00
parent f4ef92e653
commit b8d23d0965

View file

@ -2385,6 +2385,20 @@ class LBRYDaemon(jsonrpc.JSONRPC):
d.addCallback(lambda r: self._render_response(r, OK_CODE))
return d
def jsonrpc_announce_all_blobs_to_dht(self):
"""
Announce all blobs to the dht
Args:
None
Returns:
"""
d = self.session.blob_manager.immediate_announce_all_blobs()
d.addCallback(lambda _: self._render_response("Announced", OK_CODE))
return d
def get_lbrynet_version_from_github():
"""Return the latest released version from github."""