remove old spv code.

This commit is contained in:
Christopher Jeffrey 2016-06-02 16:30:33 -07:00
parent 47f75c9957
commit 648e46a252
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -270,18 +270,7 @@ Pool.prototype._init = function _init() {
}
this.chain.on('block', function(block, entry, peer) {
// Emit merkle txs after the fact
if (self.options.spv) {
utils.forEachSerial(block.txs, function(tx, next) {
self._handleTX(tx, peer, next);
}, function(err) {
if (err)
return self.emit('error', err);
self.emit('block', block, peer);
});
} else {
self.emit('block', block, peer);
}
self.emit('block', block, peer);
});
this.chain.on('fork', function(block, data, peer) {