Only remove pending txps
This commit is contained in:
parent
e9e36020fe
commit
ace301d1f8
2 changed files with 37 additions and 4 deletions
|
|
@ -1529,7 +1529,16 @@ Wallet.prototype.removeTxWithSpentInputs = function(cb) {
|
|||
var self = this;
|
||||
|
||||
cb = cb || function () {};
|
||||
var txps = this.getTxProposals();
|
||||
|
||||
var txps = [];
|
||||
var maxRejectCount = this.maxRejectCount();
|
||||
for (var ntxid in this.txProposals.txps) {
|
||||
var txp = this.txProposals.txps[ntxid];
|
||||
txp.ntxid = ntxid;
|
||||
if (txp.isPending(maxRejectCount)) {
|
||||
txps.push(txp);
|
||||
}
|
||||
}
|
||||
|
||||
var inputs = [];
|
||||
txps.forEach(function (txp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue