formatting fixes

This commit is contained in:
Lex Berezhny 2018-08-15 21:56:24 -04:00 committed by Jack Robison
parent f719aa1db0
commit e51c98ca8c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -2374,14 +2374,18 @@ class Daemon(AuthJSONRPCServer):
def jsonrpc_send_amount_to_address(self, amount, address):
"""
Queue a payment of credits to an address
Usage:
Usage:
send_amount_to_address (<amount> | --amount=<amount>) (<address> | --address=<address>)
Options:
Options:
--amount=<amount> : (float) amount to send
--address=<address> : (str) address to send credits to
Returns:
Returns:
(bool) true if payment successfully scheduled
"""
if amount < 0:
raise NegativeFundsError()
elif not amount:
@ -2964,14 +2968,17 @@ class Daemon(AuthJSONRPCServer):
def jsonrpc_get_availability(self, uri, sd_timeout=None, peer_timeout=None):
"""
Get stream availability for lbry uri
Usage:
Usage:
get_availability (<uri> | --uri=<uri>) [<sd_timeout> | --sd_timeout=<sd_timeout>]
[<peer_timeout> | --peer_timeout=<peer_timeout>]
Options:
Options:
--uri=<uri> : (str) check availability for this uri
--sd_timeout=<sd_timeout> : (int) sd blob download timeout
--peer_timeout=<peer_timeout> : (int) how long to look for peers
Returns:
Returns:
(float) Peers per blob / total blobs
"""