in/out number added

master
moneroexamples 9 years ago
parent 15fe6f0233
commit 76d0e0a319

@ -55,6 +55,12 @@ namespace xmreg {
size_t version; size_t version;
uint64_t unlock_time; uint64_t unlock_time;
// key images of inputs
vector<txin_to_key> input_key_imgs;
// public keys and xmr amount of outputs
vector<pair<txout_to_key, uint64_t>> output_pub_keys;
mstch::map mstch::map
get_mstch_map() get_mstch_map()
@ -70,6 +76,8 @@ namespace xmreg {
{"tx_fee" , fmt::format("{:0.6f}", XMR_AMOUNT(fee))}, {"tx_fee" , fmt::format("{:0.6f}", XMR_AMOUNT(fee))},
{"sum_inputs" , fmt::format("{:0.6f}", XMR_AMOUNT(xmr_inputs))}, {"sum_inputs" , fmt::format("{:0.6f}", XMR_AMOUNT(xmr_inputs))},
{"sum_outputs" , fmt::format("{:0.6f}", XMR_AMOUNT(xmr_outputs))}, {"sum_outputs" , fmt::format("{:0.6f}", XMR_AMOUNT(xmr_outputs))},
{"no_inputs" , input_key_imgs.size()},
{"no_outputs" , output_pub_keys.size()},
{"mixin" , std::to_string(mixin_no - 1)}, {"mixin" , std::to_string(mixin_no - 1)},
{"version" , std::to_string(version)}, {"version" , std::to_string(version)},
{"unlock_time" , std::to_string(unlock_time)}, {"unlock_time" , std::to_string(unlock_time)},
@ -580,6 +588,10 @@ namespace xmreg {
// get tx size in bytes // get tx size in bytes
txd.size = get_object_blobsize(tx); txd.size = get_object_blobsize(tx);
txd.input_key_imgs = get_key_images(tx);
txd.output_pub_keys = get_ouputs(tx);
// get tx version // get tx version
txd.version = tx.version; txd.version = tx.version;

@ -60,7 +60,8 @@
<td>hash</td> <td>hash</td>
<td>outputs</td> <td>outputs</td>
<td>fee</td> <td>fee</td>
<td>mixin no</td> <td>mixin #</td>
<td>in/out #</td>
<td>size [kB]</td> <td>size [kB]</td>
<td>version</td> <td>version</td>
</tr> </tr>
@ -70,6 +71,7 @@
<td>{{sum_outputs}}</td> <td>{{sum_outputs}}</td>
<td>{{tx_fee}}</td> <td>{{tx_fee}}</td>
<td>{{mixin}}</td> <td>{{mixin}}</td>
<td>{{no_inputs}}/{{no_outputs}}</td>
<td>{{tx_size}}</td> <td>{{tx_size}}</td>
<td>{{version}}</td> <td>{{version}}</td>
</tr> </tr>

Loading…
Cancel
Save