forked from LBRYCommunity/lbry-sdk
minor nits
This commit is contained in:
parent
9e7b69f4a0
commit
8277df1034
3 changed files with 13 additions and 10 deletions
|
@ -649,7 +649,7 @@ class Wallet(object):
|
||||||
lambda new_metadata: self._send_name_claim_update(name, claim['claim_id'],
|
lambda new_metadata: self._send_name_claim_update(name, claim['claim_id'],
|
||||||
claim_outpoint,
|
claim_outpoint,
|
||||||
new_metadata, _bid))
|
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
|
return d
|
||||||
|
|
||||||
meta = Metadata(m)
|
meta = Metadata(m)
|
||||||
|
|
|
@ -1686,7 +1686,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
'txid' : txid of resulting transaction if succesful
|
'txid' : txid of resulting transaction if succesful
|
||||||
'nout' : nout of the resulting support claim if succesful
|
'nout' : nout of the resulting support claim if succesful
|
||||||
'fee' : fee paid for the claim transaction 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):
|
def _set_address(address, currency, m):
|
||||||
|
|
|
@ -40,15 +40,18 @@ class Publisher(object):
|
||||||
|
|
||||||
def start(self, name, file_path, bid, metadata):
|
def start(self, name, file_path, bid, metadata):
|
||||||
log.info('Starting publish for %s', name)
|
log.info('Starting publish for %s', name)
|
||||||
|
|
||||||
def _show_result():
|
def _show_result():
|
||||||
log.info("Success! Published %s --> lbry://%s txid: %s nout: %d",
|
log.info(
|
||||||
self.file_name, self.publish_name, self.txid, self.nout)
|
"Success! Published %s --> lbry://%s txid: %s nout: %d",
|
||||||
out = {}
|
self.file_name, self.publish_name, self.txid, self.nout
|
||||||
out['nout'] = self.nout
|
)
|
||||||
out['txid'] = self.txid
|
return defer.succeed({
|
||||||
out['claim_id'] = self.claim_id
|
'nout': self.nout,
|
||||||
out['fee'] = self.fee
|
'txid': self.txid,
|
||||||
return defer.succeed(out)
|
'claim_id': self.claim_id,
|
||||||
|
'fee': self.fee,
|
||||||
|
})
|
||||||
|
|
||||||
self.publish_name = name
|
self.publish_name = name
|
||||||
self.file_path = file_path
|
self.file_path = file_path
|
||||||
|
|
Loading…
Reference in a new issue