LBRYcrdWallet update claim fix

-fix log line that could raise an exception
-json encode value sent to lbrycrd-cli updateclaim
This commit is contained in:
Jack 2016-08-22 16:57:22 -04:00
parent 9c82689f65
commit e49f0f99a1
2 changed files with 3 additions and 2 deletions

View file

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

View file

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