diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 4e0f12a8..84c2b043 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -467,7 +467,7 @@ Pool.prototype._handleHeaders = function _handleHeaders(headers, peer) { peer.host); if (headers.length > 2000) { - self.misbehaving(peer, 100); + this.misbehaving(peer, 100); return; } @@ -522,7 +522,7 @@ Pool.prototype._handleBlocks = function _handleBlocks(hashes, peer) { peer.host); if (hashes.length > 500) { - self.misbehaving(peer, 100); + this.misbehaving(peer, 100); return; }