add announce_all_blobs_to_dht
This commit is contained in:
parent
f4ef92e653
commit
b8d23d0965
1 changed files with 14 additions and 0 deletions
|
@ -2385,6 +2385,20 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
d.addCallback(lambda r: self._render_response(r, OK_CODE))
|
d.addCallback(lambda r: self._render_response(r, OK_CODE))
|
||||||
return d
|
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():
|
def get_lbrynet_version_from_github():
|
||||||
"""Return the latest released version from github."""
|
"""Return the latest released version from github."""
|
||||||
|
|
Loading…
Reference in a new issue