forked from LBRYCommunity/lbry-sdk
formatting fixes
This commit is contained in:
parent
f719aa1db0
commit
e51c98ca8c
1 changed files with 13 additions and 6 deletions
|
@ -2374,14 +2374,18 @@ class Daemon(AuthJSONRPCServer):
|
||||||
def jsonrpc_send_amount_to_address(self, amount, address):
|
def jsonrpc_send_amount_to_address(self, amount, address):
|
||||||
"""
|
"""
|
||||||
Queue a payment of credits to an address
|
Queue a payment of credits to an address
|
||||||
Usage:
|
|
||||||
|
Usage:
|
||||||
send_amount_to_address (<amount> | --amount=<amount>) (<address> | --address=<address>)
|
send_amount_to_address (<amount> | --amount=<amount>) (<address> | --address=<address>)
|
||||||
Options:
|
|
||||||
|
Options:
|
||||||
--amount=<amount> : (float) amount to send
|
--amount=<amount> : (float) amount to send
|
||||||
--address=<address> : (str) address to send credits to
|
--address=<address> : (str) address to send credits to
|
||||||
Returns:
|
|
||||||
|
Returns:
|
||||||
(bool) true if payment successfully scheduled
|
(bool) true if payment successfully scheduled
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if amount < 0:
|
if amount < 0:
|
||||||
raise NegativeFundsError()
|
raise NegativeFundsError()
|
||||||
elif not amount:
|
elif not amount:
|
||||||
|
@ -2964,14 +2968,17 @@ class Daemon(AuthJSONRPCServer):
|
||||||
def jsonrpc_get_availability(self, uri, sd_timeout=None, peer_timeout=None):
|
def jsonrpc_get_availability(self, uri, sd_timeout=None, peer_timeout=None):
|
||||||
"""
|
"""
|
||||||
Get stream availability for lbry uri
|
Get stream availability for lbry uri
|
||||||
Usage:
|
|
||||||
|
Usage:
|
||||||
get_availability (<uri> | --uri=<uri>) [<sd_timeout> | --sd_timeout=<sd_timeout>]
|
get_availability (<uri> | --uri=<uri>) [<sd_timeout> | --sd_timeout=<sd_timeout>]
|
||||||
[<peer_timeout> | --peer_timeout=<peer_timeout>]
|
[<peer_timeout> | --peer_timeout=<peer_timeout>]
|
||||||
Options:
|
|
||||||
|
Options:
|
||||||
--uri=<uri> : (str) check availability for this uri
|
--uri=<uri> : (str) check availability for this uri
|
||||||
--sd_timeout=<sd_timeout> : (int) sd blob download timeout
|
--sd_timeout=<sd_timeout> : (int) sd blob download timeout
|
||||||
--peer_timeout=<peer_timeout> : (int) how long to look for peers
|
--peer_timeout=<peer_timeout> : (int) how long to look for peers
|
||||||
Returns:
|
|
||||||
|
Returns:
|
||||||
(float) Peers per blob / total blobs
|
(float) Peers per blob / total blobs
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue