tx-pool: fix update event

This commit is contained in:
Fedor Indutny 2014-05-10 23:18:16 +04:00
parent f0127654d7
commit a7880de752

View File

@ -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);