mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
few more details about block added
This commit is contained in:
parent
20beb09de5
commit
4ab437bf7b
2 changed files with 6 additions and 4 deletions
|
@ -348,6 +348,8 @@ namespace xmreg {
|
||||||
// transcation in the block
|
// transcation in the block
|
||||||
vector<crypto::hash> tx_hashes = blk.tx_hashes;
|
vector<crypto::hash> tx_hashes = blk.tx_hashes;
|
||||||
|
|
||||||
|
bool have_txs = !blk.tx_hashes.empty();
|
||||||
|
|
||||||
// initalise page tempate map with basic info about blockchain
|
// initalise page tempate map with basic info about blockchain
|
||||||
mstch::map context {
|
mstch::map context {
|
||||||
{"blk_hash" , blk_hash_str},
|
{"blk_hash" , blk_hash_str},
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<H3>Block hash (height): {{blk_hash}} ({{blk_height}})</H3>
|
<H4>Block hash (height): {{blk_hash}} ({{blk_height}})</H4>
|
||||||
|
|
||||||
|
|
||||||
{{#have_prev_hash}}
|
{{#have_prev_hash}}
|
||||||
<H4>Previous block: <a href="/block/{{prev_hash}}">{{prev_hash}}</a></H4>
|
<H5>Previous block: <a href="/block/{{prev_hash}}">{{prev_hash}}</a></H5>
|
||||||
{{/have_prev_hash}}
|
{{/have_prev_hash}}
|
||||||
|
|
||||||
{{#have_next_hash}}
|
{{#have_next_hash}}
|
||||||
<H4>Next block: <a href="/block/{{next_hash}}">{{next_hash}}</a></H4>
|
<H5>Next block: <a href="/block/{{next_hash}}">{{next_hash}}</a></H5>
|
||||||
{{/have_next_hash}}
|
{{/have_next_hash}}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>Timestamp [UCT]:</td><td>{{blk_timestamp}}</td>
|
<td>Timestamp [UCT]:</td><td>{{blk_timestamp}}</td>
|
||||||
<td>Age {{age_format}}:</td><td>{{blk_age}}</td>
|
<td>Age {{age_format}}:</td><td>{{blk_age}}</td>
|
||||||
<td>Time from previous block [h:m:s]:</td><td>{{delta_time}}</td>
|
<td>Δ [h:m:s]:</td><td>{{delta_time}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Major version:</td><td>{{major_ver}}</td>
|
<td>Major version:</td><td>{{major_ver}}</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue