fix isPending usage
This commit is contained in:
parent
e11ac3e956
commit
c616f02169
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue