uint timestamp shown in tx

master
moneroexamples 9 years ago
parent 04927cb79e
commit 036e7bbbb6

@ -938,6 +938,7 @@ namespace xmreg {
static_cast<double>(txd.size) / 1024.0)},
{"tx_fee" , fmt::format("{:0.12f}", XMR_AMOUNT(txd.fee))},
{"blk_timestamp" , blk_timestamp},
{"blk_timestamp_uint" , blk.timestamp},
{"delta_time" , age.first},
{"inputs_no" , txd.input_key_imgs.size()},
{"has_inputs" , !txd.input_key_imgs.empty()},
@ -1953,7 +1954,7 @@ namespace xmreg {
txd.mixin_no = get_mixin_no(tx);
txd.fee = 0;
if (!coinbase && tx.vin.size() > 0)
{
// check if not miner tx

@ -27,8 +27,11 @@
<table class="center" style="width: 80%; margin-top:10px">
<tr>
<td>Block: <a href="/block/{{blk_height}}">{{blk_height}}</a></td>
<td>Timestamp: {{blk_timestamp_uint}}</td>
<td>Timestamp [UCT]: {{blk_timestamp}}</td>
<td>Age [y:d:h:m:s]: {{delta_time}}</td>
</tr>
<tr>
<td>Fee: {{tx_fee}}</td>
<td>Tx size: {{tx_size}} kB</td>
</tr>

Loading…
Cancel
Save