remove testing-debug logging
This commit is contained in:
parent
ca54b05618
commit
ba08acb6ae
@ -723,7 +723,6 @@ HeaderService.prototype._startSync = function() {
|
|||||||
self._syncUnresponsive = true;
|
self._syncUnresponsive = true;
|
||||||
self._syncCheckInterval = setInterval(() => {
|
self._syncCheckInterval = setInterval(() => {
|
||||||
//check the best height
|
//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)
|
if(self._bestHeight < self._p2p._bcoin._bcoin.pool.chain.height)
|
||||||
self._bestHeight = self._p2p._bcoin._bcoin.pool.chain.height;
|
self._bestHeight = self._p2p._bcoin._bcoin.pool.chain.height;
|
||||||
//call sync again if unresponsive
|
//call sync again if unresponsive
|
||||||
|
|||||||
@ -97,7 +97,6 @@ P2P.prototype.getHeaders = function(filter) {
|
|||||||
|
|
||||||
var peer = this._getPeer();
|
var peer = this._getPeer();
|
||||||
var headerFilter = this._setResourceFilter(filter, 'headers');
|
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));
|
peer.sendMessage(this.messages.GetHeaders(headerFilter));
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -234,7 +233,6 @@ P2P.prototype._getBestHeight = function() {
|
|||||||
if (this._peers[i].bestHeight > maxHeight) {
|
if (this._peers[i].bestHeight > maxHeight) {
|
||||||
maxHeight = this._peers[i].bestHeight;
|
maxHeight = this._peers[i].bestHeight;
|
||||||
this._peer = this._peers[i];
|
this._peer = this._peers[i];
|
||||||
console.debug("Swapping best peer", this._peer.host, this._peer.port, maxHeight);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return maxHeight;
|
return maxHeight;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user