We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7696aa7 commit b2ae01bCopy full SHA for b2ae01b
1 file changed
lib/pool.js
@@ -127,11 +127,12 @@ Pool.prototype._handlePeerReady = function(peer, addr) {
127
Pool.prototype._handlePeerDisconnect = function(peer, addr) {
128
this._removePeer(peer);
129
clearInterval(peer._pingTimer);
130
- this.emit('peer-disconnect', peer);
+ this.emit('peer-disconnect', peer)
131
}
132
133
Pool.prototype._handlePeerInv = function(peer, message) {
134
var txHashes = [], blockHashes = [];
135
+
136
if(message.count > constants.MAX_GETDATA_HASHES) {
137
console.log('inv message has too many items, dropping.');
138
return;
0 commit comments