tx-pool: fix ps check
This commit is contained in:
parent
bb340422a0
commit
e716f4eb00
@ -49,8 +49,8 @@ TXPool.prototype.add = function add(tx, noWrite) {
|
|||||||
var hash = tx.hash('hex');
|
var hash = tx.hash('hex');
|
||||||
|
|
||||||
// Ignore stale pending transactions
|
// Ignore stale pending transactions
|
||||||
if (tx.ps + 2 * 24 * 3600 < +new Date / 1000) {
|
if (tx.ts === 0 && tx.ps + 2 * 24 * 3600 < +new Date / 1000) {
|
||||||
this._removeTX(orphan.tx);
|
this._removeTX(tx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user