debug: log peers
This commit is contained in:
parent
e3f5de4df5
commit
1a5dd8e508
@ -97,6 +97,8 @@ P2P.prototype.getHeaders = function(filter) {
|
||||
|
||||
var peer = this._getPeer();
|
||||
var headerFilter = this._setResourceFilter(filter, 'headers');
|
||||
|
||||
console.debug("p2p:getHeaders", peer, headerFilter);
|
||||
peer.sendMessage(this.messages.GetHeaders(headerFilter));
|
||||
|
||||
};
|
||||
@ -233,6 +235,7 @@ 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, maxHeight);
|
||||
}
|
||||
}
|
||||
return maxHeight;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user