diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 2fbc8ebd..9fee1d4f 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -538,7 +538,7 @@ RPC.prototype.getpeerinfo = co(function* getpeerinfo(args, help) { subver: peer.agent, inbound: !peer.outbound, startingheight: peer.height, - besthash: peer.bestHash, + besthash: peer.bestHash ? util.revHex(peer.bestHash) : null, bestheight: peer.bestHeight, banscore: peer.banScore, inflight: peer.requestMap.keys().map(util.revHex),