From a32a0c6401571153864efe711a39ac87bcd8f630 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 10 Aug 2018 18:13:37 -0300 Subject: [PATCH] fix peer_ping --- lbrynet/daemon/Daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 52a4d5c8d..2ba280f86 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -2640,7 +2640,7 @@ class Daemon(AuthJSONRPCServer): peers = yield finished_deferred results = [ { - "node_id": node_id.encode('hex'), + "node_id": hexlify(node_id).decode(), "host": host, "port": port } @@ -2859,7 +2859,7 @@ class Daemon(AuthJSONRPCServer): if not contact: defer.returnValue({'error': 'peer not found'}) try: - result = yield contact.ping() + result = (yield contact.ping()).decode() except TimeoutError: result = {'error': 'ping timeout'} defer.returnValue(result)