tx-pool: fix update event
This commit is contained in:
parent
f0127654d7
commit
a7880de752
@ -135,8 +135,10 @@ TXPool.prototype.add = function add(tx, noWrite) {
|
||||
}
|
||||
|
||||
delete this._orphans[key];
|
||||
if (!orphans)
|
||||
if (!orphans) {
|
||||
this._unspent[key] = { tx: tx, index: i };
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
|
||||
this._lastTs = Math.max(tx.ts, this._lastTs);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user