forked from LBRYCommunity/lbry-sdk
update docstrings and make sure return value is consistent
This commit is contained in:
parent
bf29d28c4d
commit
707775214a
1 changed files with 11 additions and 6 deletions
|
@ -2032,13 +2032,17 @@ class Daemon(AuthJSONRPCServer):
|
||||||
claim_renew (<outpoint> | --outpoint=<outpoint>) | (<height> | --height=<height>)
|
claim_renew (<outpoint> | --outpoint=<outpoint>) | (<height> | --height=<height>)
|
||||||
|
|
||||||
Return:
|
Return:
|
||||||
(dict) Dictionary containing result of the claim/support renewals
|
(dict) Dictionary where key is the the original claim's outpoint and
|
||||||
|
value is the result of the renewal
|
||||||
{
|
{
|
||||||
'tx' : (str) hex encoded transaction
|
outpoint:{
|
||||||
'txid' : (str) txid of resulting claim
|
|
||||||
'nout' : (int) nout of the resulting claim
|
'tx' : (str) hex encoded transaction
|
||||||
'fee' : (float) fee paid for the claim transaction
|
'txid' : (str) txid of resulting claim
|
||||||
'claim_id' : (str) claim ID of the resulting claim
|
'nout' : (int) nout of the resulting claim
|
||||||
|
'fee' : (float) fee paid for the claim transaction
|
||||||
|
'claim_id' : (str) claim ID of the resulting claim
|
||||||
|
},
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -2051,6 +2055,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
else:
|
else:
|
||||||
raise Exception("invalid outpoint")
|
raise Exception("invalid outpoint")
|
||||||
result = yield self.session.wallet.claim_renew(txid, nout)
|
result = yield self.session.wallet.claim_renew(txid, nout)
|
||||||
|
result = {outpoint:result}
|
||||||
else:
|
else:
|
||||||
height = int(height)
|
height = int(height)
|
||||||
result = yield self.session.wallet.claim_renew_all_before_expiration(height)
|
result = yield self.session.wallet.claim_renew_all_before_expiration(height)
|
||||||
|
|
Loading…
Add table
Reference in a new issue