remove old spv code.
This commit is contained in:
parent
47f75c9957
commit
648e46a252
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user