uint timestamp shown in tx

This commit is contained in:
moneroexamples 2016-05-15 10:30:12 +00:00
parent 04927cb79e
commit 036e7bbbb6
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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>