minor nits

This commit is contained in:
Alex Grintsvayg 2017-01-13 12:19:26 -05:00 committed by Alex Grintsvayg
parent 9e7b69f4a0
commit 8277df1034
3 changed files with 13 additions and 10 deletions

View file

@ -649,7 +649,7 @@ class Wallet(object):
lambda new_metadata: self._send_name_claim_update(name, claim['claim_id'],
claim_outpoint,
new_metadata, _bid))
d.addCallback(lambda claim_out: claim_out.update({'claim_id':claim['claim_id']}))
d.addCallback(lambda claim_out: claim_out.update({'claim_id': claim['claim_id']}))
return d
meta = Metadata(m)

View file

@ -1686,7 +1686,7 @@ class Daemon(AuthJSONRPCServer):
'txid' : txid of resulting transaction if succesful
'nout' : nout of the resulting support claim if succesful
'fee' : fee paid for the claim transaction if succesful
'claim_id' : claimid of the resulting transaction
'claim_id' : claim id of the resulting transaction
"""
def _set_address(address, currency, m):

View file

@ -40,15 +40,18 @@ class Publisher(object):
def start(self, name, file_path, bid, metadata):
log.info('Starting publish for %s', name)
def _show_result():
log.info("Success! Published %s --> lbry://%s txid: %s nout: %d",
self.file_name, self.publish_name, self.txid, self.nout)
out = {}
out['nout'] = self.nout
out['txid'] = self.txid
out['claim_id'] = self.claim_id
out['fee'] = self.fee
return defer.succeed(out)
log.info(
"Success! Published %s --> lbry://%s txid: %s nout: %d",
self.file_name, self.publish_name, self.txid, self.nout
)
return defer.succeed({
'nout': self.nout,
'txid': self.txid,
'claim_id': self.claim_id,
'fee': self.fee,
})
self.publish_name = name
self.file_path = file_path