|
|
@ -70,10 +70,14 @@ TxProposal.prototype._updateStatus = function() { |
|
|
|
|
|
|
|
|
|
|
|
TxProposal.prototype._getCurrentSignatures = function() { |
|
|
|
return _.map(_.some(this.actions, 'xpub'), function(x) { |
|
|
|
var acceptedActions = _.filter(this.actions, function(x) { |
|
|
|
return x && x.type == 'accept'; |
|
|
|
}); |
|
|
|
|
|
|
|
return _.map(acceptedActions, function(x) { |
|
|
|
return { |
|
|
|
signatures: x.signatures, |
|
|
|
xpub: xpub, |
|
|
|
xpub: x.xpub, |
|
|
|
}; |
|
|
|
}); |
|
|
|
}; |
|
|
@ -94,7 +98,7 @@ TxProposal.prototype._getBitcoreTx = function() { |
|
|
|
|
|
|
|
var sigs = this._getCurrentSignatures(); |
|
|
|
_.each(sigs, function(x) { |
|
|
|
this._addSignaturesToBitcoreTx(t, x.signatures, x.xpub); |
|
|
|
self._addSignaturesToBitcoreTx(t, x.signatures, x.xpub); |
|
|
|
}); |
|
|
|
|
|
|
|
return t; |
|
|
|