|
|
@ -1532,6 +1532,7 @@ WalletService.prototype.getTxHistory = function(opts, cb) { |
|
|
|
amount = 0; |
|
|
|
} |
|
|
|
|
|
|
|
function outputMap(o) { return { amount: o.amount, address: o.address } }; |
|
|
|
var newTx = { |
|
|
|
txid: tx.txid, |
|
|
|
action: action, |
|
|
@ -1539,13 +1540,14 @@ WalletService.prototype.getTxHistory = function(opts, cb) { |
|
|
|
fees: tx.fees, |
|
|
|
time: tx.time, |
|
|
|
addressTo: addressTo, |
|
|
|
outputs: _.filter(outputs, { isChange: false }), |
|
|
|
outputs: _.map(_.filter(outputs, { isChange: false }), outputMap), |
|
|
|
confirmations: tx.confirmations, |
|
|
|
}; |
|
|
|
|
|
|
|
var proposal = indexedProposals[tx.txid]; |
|
|
|
if (proposal) { |
|
|
|
newTx.proposalId = proposal.id; |
|
|
|
newTx.proposalType = proposal.type; |
|
|
|
newTx.creatorName = proposal.creatorName; |
|
|
|
newTx.message = proposal.message; |
|
|
|
newTx.actions = _.map(proposal.actions, function(action) { |
|
|
|