fix isPending usage

This commit is contained in:
Matias Alejo Garcia 2014-08-21 14:19:08 -04:00
parent e11ac3e956
commit c616f02169
1 changed files with 3 additions and 3 deletions

View File

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