From ba08acb6ae8a2e6dc16b0c5e516abacc3aaca608 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Tue, 17 Jan 2023 22:02:47 +0530 Subject: [PATCH] remove testing-debug logging --- lib/services/header/index.js | 1 - lib/services/p2p/index.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/services/header/index.js b/lib/services/header/index.js index 345676b1..154409e9 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -723,7 +723,6 @@ HeaderService.prototype._startSync = function() { self._syncUnresponsive = true; self._syncCheckInterval = setInterval(() => { //check the best height - console.debug("bestHeight check", self._bestHeight, self._p2p._bcoin._bcoin.pool.chain.height) if(self._bestHeight < self._p2p._bcoin._bcoin.pool.chain.height) self._bestHeight = self._p2p._bcoin._bcoin.pool.chain.height; //call sync again if unresponsive diff --git a/lib/services/p2p/index.js b/lib/services/p2p/index.js index eee8e30e..d59a2cd6 100644 --- a/lib/services/p2p/index.js +++ b/lib/services/p2p/index.js @@ -97,7 +97,6 @@ P2P.prototype.getHeaders = function(filter) { var peer = this._getPeer(); var headerFilter = this._setResourceFilter(filter, 'headers'); - console.debug("p2p:getHeaders", peer.host, peer.port, peer.bestHeight, JSON.stringify(headerFilter)); peer.sendMessage(this.messages.GetHeaders(headerFilter)); }; @@ -234,7 +233,6 @@ P2P.prototype._getBestHeight = function() { if (this._peers[i].bestHeight > maxHeight) { maxHeight = this._peers[i].bestHeight; this._peer = this._peers[i]; - console.debug("Swapping best peer", this._peer.host, this._peer.port, maxHeight); } } return maxHeight;