update docstrings and make sure return value is consistent

This commit is contained in:
Kay Kurokawa 2017-11-29 12:16:51 -05:00 committed by Jack Robison
parent bf29d28c4d
commit 707775214a
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -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)