tx-pool: fix ps check

This commit is contained in:
Fedor Indutny 2014-05-10 19:50:25 +04:00
parent bb340422a0
commit e716f4eb00

View File

@ -49,8 +49,8 @@ TXPool.prototype.add = function add(tx, noWrite) {
var hash = tx.hash('hex');
// Ignore stale pending transactions
if (tx.ps + 2 * 24 * 3600 < +new Date / 1000) {
this._removeTX(orphan.tx);
if (tx.ts === 0 && tx.ps + 2 * 24 * 3600 < +new Date / 1000) {
this._removeTX(tx);
return;
}