diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 0a4ca1183..f131d493d 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -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) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index a2ee01526..401a80da4 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -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): diff --git a/lbrynet/lbrynet_daemon/Publisher.py b/lbrynet/lbrynet_daemon/Publisher.py index ea8abbde5..26202c1fc 100644 --- a/lbrynet/lbrynet_daemon/Publisher.py +++ b/lbrynet/lbrynet_daemon/Publisher.py @@ -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