mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
tx and blk sizes added
This commit is contained in:
parent
2d180d3765
commit
324926eed5
3 changed files with 12 additions and 3 deletions
|
@ -151,6 +151,8 @@ namespace xmreg {
|
||||||
return fmt::format("{:d} - {:d}", mixin_min, mixin_max);
|
return fmt::format("{:d} - {:d}", mixin_min, mixin_max);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
uint64_t blk_size = get_object_blobsize(blk);
|
||||||
|
|
||||||
// set output page template map
|
// set output page template map
|
||||||
blocks.push_back(mstch::map {
|
blocks.push_back(mstch::map {
|
||||||
{"height" , to_string(i)},
|
{"height" , to_string(i)},
|
||||||
|
@ -164,7 +166,9 @@ namespace xmreg {
|
||||||
XMR_AMOUNT(sum_xmr_in_out[0]))},
|
XMR_AMOUNT(sum_xmr_in_out[0]))},
|
||||||
{"xmr_outputs" , fmt::format("{:0.2f}",
|
{"xmr_outputs" , fmt::format("{:0.2f}",
|
||||||
XMR_AMOUNT(sum_xmr_in_out[1]))},
|
XMR_AMOUNT(sum_xmr_in_out[1]))},
|
||||||
{"mixin_range" , mstch::lambda {mixin_format}}
|
{"mixin_range" , mstch::lambda {mixin_format}},
|
||||||
|
{"blksize" , fmt::format("{:0.2f}",
|
||||||
|
static_cast<double>(blk_size) / 1024.0)}
|
||||||
});
|
});
|
||||||
|
|
||||||
prev_blk_timestamp = blk.timestamp;
|
prev_blk_timestamp = blk.timestamp;
|
||||||
|
@ -259,7 +263,8 @@ namespace xmreg {
|
||||||
{"fee" , fmt::format("{:0.4f}", XMR_AMOUNT(_tx_info.fee))},
|
{"fee" , fmt::format("{:0.4f}", XMR_AMOUNT(_tx_info.fee))},
|
||||||
{"xmr_inputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_inputs))},
|
{"xmr_inputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_inputs))},
|
||||||
{"xmr_outputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_outputs))},
|
{"xmr_outputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_outputs))},
|
||||||
{"mixin" , fmt::format("{:d}", mixin_numbers.at(0))}
|
{"mixin" , fmt::format("{:d}", mixin_numbers.at(0))},
|
||||||
|
{"txsize", fmt::format("{:0.2f}", static_cast<double>(_tx_info.blob_size)/1024.0)}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
<td>no_of_txs</td>
|
<td>no_of_txs</td>
|
||||||
<td>inputs/outputs</td>
|
<td>inputs/outputs</td>
|
||||||
<td>mixin_range</td>
|
<td>mixin_range</td>
|
||||||
|
<td>size [kbytes]</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{#blocks}}
|
{{#blocks}}
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
<td>{{notx}}</td>
|
<td>{{notx}}</td>
|
||||||
<td>{{xmr_inputs}}/{{xmr_outputs}}</td>
|
<td>{{xmr_inputs}}/{{xmr_outputs}}</td>
|
||||||
<td>{{mixin_range}}</td>
|
<td>{{mixin_range}}</td>
|
||||||
|
<td>{{blksize}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/blocks}}
|
{{/blocks}}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<td>tx fee</td>
|
<td>tx fee</td>
|
||||||
<td>inputs/outputs</td>
|
<td>inputs/outputs</td>
|
||||||
<td>mixin</td>
|
<td>mixin</td>
|
||||||
|
<td>size [kbytes]</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{#mempooltxs}}
|
{{#mempooltxs}}
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
<td>{{fee}}</td>
|
<td>{{fee}}</td>
|
||||||
<td>{{xmr_inputs}}/{{xmr_outputs}}</td>
|
<td>{{xmr_inputs}}/{{xmr_outputs}}</td>
|
||||||
<td>{{mixin}}</td>
|
<td>{{mixin}}</td>
|
||||||
|
<td>{{txsize}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/mempooltxs}}
|
{{/mempooltxs}}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue