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:
parent
9c82689f65
commit
e49f0f99a1
2 changed files with 3 additions and 2 deletions
|
@ -989,7 +989,7 @@ class LBRYcrdWallet(LBRYWallet):
|
||||||
@_catch_connection_error
|
@_catch_connection_error
|
||||||
def _update_name_rpc(self, txid, value, amount):
|
def _update_name_rpc(self, txid, value, amount):
|
||||||
rpc_conn = self._get_rpc_conn()
|
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
|
@_catch_connection_error
|
||||||
def _send_name_claim_rpc(self, name, value, amount):
|
def _send_name_claim_rpc(self, name, value, amount):
|
||||||
|
|
|
@ -172,7 +172,8 @@ class ConnectionManager(object):
|
||||||
def pick_best_peer(peers):
|
def pick_best_peer(peers):
|
||||||
# TODO: Eventually rank them based on past performance/reputation. For now
|
# 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
|
# 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:
|
if peers is None:
|
||||||
return None
|
return None
|
||||||
for peer in peers:
|
for peer in peers:
|
||||||
|
|
Loading…
Reference in a new issue