txhistory of received payments show all outputs, including sender's change address

This commit is contained in:
Gregg Zigler 2015-08-05 15:25:54 -07:00
commit 07b9fb3921
2 changed files with 14 additions and 6 deletions

View file

@ -430,10 +430,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
if (tx.outputs) {
tx.showSingle = false;
tx.outputs.details = lodash.clone(tx.outputs);
tx.amount = lodash.reduce(tx.outputs.details, function(total, o) {
formatAmount(o);
return total + o.amount;
}, 0);
if (tx.action != 'received') {
tx.amount = lodash.reduce(tx.outputs.details, function(total, o) {
formatAmount(o);
return total + o.amount;
}, 0);
}
tx.outputs.summary = {
amount: tx.amount,
message: tx.message,