From 2b84c16f0a11c3e41e2cfc409966196f55723c47 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 17 Feb 2016 12:54:42 -0800 Subject: [PATCH] drop bip37 emulation. --- lib/bcoin/pool.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index ed760e12..5753b396 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -617,14 +617,6 @@ Pool.prototype._handleBlock = function _handleBlock(block, peer, callback) { // Fulfill our request. requested = self._response(block); - // Emulate BIP37: emit all the filtered transactions. - if (!self.options.spv && self.listeners('watched').length > 0) { - block.txs.forEach(function(tx) { - if (self.isWatched(tx)) - self.emit('watched', tx, peer); - }); - } - // Ensure the block was not invalid last time. // Someone might be sending us bad blocks to DoS us. if (self.block.invalid[block.hash('hex')]) {