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) {
|
TxProposals.prototype.getUsedUnspent = function(maxRejectCount) {
|
||||||
var ret = {};
|
var ret = {};
|
||||||
for (var i in this.txps) {
|
for (var i in this.txps) {
|
||||||
|
if (!this.txps[i].isPending(maxRejectCount))
|
||||||
|
continue;
|
||||||
|
|
||||||
var u = this.txps[i].builder.getSelectedUnspent();
|
var u = this.txps[i].builder.getSelectedUnspent();
|
||||||
var p = this.getTxProposal(i);
|
var p = this.getTxProposal(i);
|
||||||
|
|
||||||
if (!p.isPending(maxRejectCount))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
for (var j in u) {
|
for (var j in u) {
|
||||||
ret[u[j].txid + ',' + u[j].vout] = 1;
|
ret[u[j].txid + ',' + u[j].vout] = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue