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)