mempool: fix reorg handling.
This commit is contained in:
parent
1b489f42cd
commit
36a63694a0
@ -239,9 +239,12 @@ Mempool.prototype._removeBlock = co(function* removeBlock(block) {
|
||||
if (this.hasTX(hash))
|
||||
continue;
|
||||
|
||||
tx = tx.clone();
|
||||
tx.unsetBlock();
|
||||
|
||||
entry = MempoolEntry.fromTX(tx, block.height);
|
||||
|
||||
yield this._addUnchecked(entry);
|
||||
this.trackEntry(entry);
|
||||
|
||||
this.emit('unconfirmed', tx, block);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user