mirror of https://github.com/BTCPrivate/copay.git
fix isPending usage
This commit is contained in:
parent
e11ac3e956
commit
c616f02169
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue