txp outputs must be in same order and fully expanded so that signature matches

This commit is contained in:
Gregg Zigler 2015-07-09 14:12:36 -07:00
commit acf33a5467
2 changed files with 5 additions and 1 deletions

View file

@ -446,7 +446,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
formatAmount(o, o.amount * self.satToUnit);
return total + o.amount;
}, 0);
var summary = lodash.sortBy(tx.outputs, 'amount').reverse();
var summary = tx.outputs;
tx.outputs = [{
amount: tx.amount,
message: tx.message,

View file

@ -255,6 +255,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$scope.loading = true;
$scope.error = null;
$timeout(function() {
lodash.times(
txp.outputs ? txp.outputs.recipientCount : 0,
function(n) { $scope.expand(txp.outputs); }
);
fc.signTxProposal(txp, function(err, txpsi) {
profileService.lockFC();
self.setOngoingProcess();