mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
show total amounts of outputs for signed tx data file
This commit is contained in:
parent
21604647ce
commit
d686a1809e
2 changed files with 6 additions and 2 deletions
|
@ -1607,6 +1607,7 @@ namespace xmreg {
|
||||||
|
|
||||||
mstch::array destination_addresses;
|
mstch::array destination_addresses;
|
||||||
vector<uint64_t> real_ammounts;
|
vector<uint64_t> real_ammounts;
|
||||||
|
uint64_t outputs_xmr_sum {0};
|
||||||
|
|
||||||
// destiantion address for this tx
|
// destiantion address for this tx
|
||||||
for (tx_destination_entry& a_dest: ptx.construction_data.splitted_dsts)
|
for (tx_destination_entry& a_dest: ptx.construction_data.splitted_dsts)
|
||||||
|
@ -1623,6 +1624,8 @@ namespace xmreg {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
outputs_xmr_sum += a_dest.amount;
|
||||||
|
|
||||||
real_ammounts.push_back(a_dest.amount);
|
real_ammounts.push_back(a_dest.amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1640,6 +1643,8 @@ namespace xmreg {
|
||||||
real_ammounts.push_back(ptx.construction_data.change_dts.amount);
|
real_ammounts.push_back(ptx.construction_data.change_dts.amount);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tx_context["outputs_xmr_sum"] = fmt::format("{:0.12f}", XMR_AMOUNT(outputs_xmr_sum));
|
||||||
|
|
||||||
tx_context.insert({"dest_infos", destination_addresses});
|
tx_context.insert({"dest_infos", destination_addresses});
|
||||||
|
|
||||||
// get reference to inputs array created of the tx
|
// get reference to inputs array created of the tx
|
||||||
|
|
|
@ -82,8 +82,7 @@
|
||||||
{{/outputs}}
|
{{/outputs}}
|
||||||
</table>
|
</table>
|
||||||
{{/dest_sources}}
|
{{/dest_sources}}
|
||||||
<h4>Change to be returned to the sender</h4>
|
<h4>Change to be returned to the sender: {{change_amount}}</h4>
|
||||||
Amount: {{change_amount}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/txs}}
|
{{/txs}}
|
||||||
{{/unsigned_tx_given}}
|
{{/unsigned_tx_given}}
|
||||||
|
|
Loading…
Reference in a new issue