From e49f0f99a1820d95a8a64d2c40ff223955325d22 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 22 Aug 2016 16:57:22 -0400 Subject: [PATCH] LBRYcrdWallet update claim fix -fix log line that could raise an exception -json encode value sent to lbrycrd-cli updateclaim --- lbrynet/core/LBRYWallet.py | 2 +- lbrynet/core/client/ConnectionManager.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lbrynet/core/LBRYWallet.py b/lbrynet/core/LBRYWallet.py index 7d275278b..459b28568 100644 --- a/lbrynet/core/LBRYWallet.py +++ b/lbrynet/core/LBRYWallet.py @@ -989,7 +989,7 @@ class LBRYcrdWallet(LBRYWallet): @_catch_connection_error def _update_name_rpc(self, txid, value, amount): rpc_conn = self._get_rpc_conn() - return rpc_conn.updateclaim(txid, value, amount) + return rpc_conn.updateclaim(txid, json.dumps(value), amount) @_catch_connection_error def _send_name_claim_rpc(self, name, value, amount): diff --git a/lbrynet/core/client/ConnectionManager.py b/lbrynet/core/client/ConnectionManager.py index f82f19a20..6cff01156 100644 --- a/lbrynet/core/client/ConnectionManager.py +++ b/lbrynet/core/client/ConnectionManager.py @@ -172,7 +172,8 @@ class ConnectionManager(object): def pick_best_peer(peers): # TODO: Eventually rank them based on past performance/reputation. For now # TODO: just pick the first to which we don't have an open connection - log.debug("Got a list of peers to choose from: %s", str(["%s:%i" % (p.host, p.port) for p in peers])) + + log.debug("Got a list of peers to choose from: %s", str(peers)) if peers is None: return None for peer in peers: