From c616f0216917fef6db673f41172bf19675b653da Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 21 Aug 2014 14:19:08 -0400 Subject: [PATCH] fix isPending usage --- js/models/core/TxProposals.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models/core/TxProposals.js b/js/models/core/TxProposals.js index e5b48cf5b..11d9ad3b8 100644 --- a/js/models/core/TxProposals.js +++ b/js/models/core/TxProposals.js @@ -166,12 +166,12 @@ TxProposals.prototype.seen = function(ntxid, copayerId) { TxProposals.prototype.getUsedUnspent = function(maxRejectCount) { var ret = {}; for (var i in this.txps) { + if (!this.txps[i].isPending(maxRejectCount)) + continue; + var u = this.txps[i].builder.getSelectedUnspent(); var p = this.getTxProposal(i); - if (!p.isPending(maxRejectCount)) - continue; - for (var j in u) { ret[u[j].txid + ',' + u[j].vout] = 1; }