few more details about block added

This commit is contained in:
moneroexamples 2016-04-16 12:11:17 +08:00
parent 20beb09de5
commit 4ab437bf7b
2 changed files with 6 additions and 4 deletions

View File

@ -348,6 +348,8 @@ namespace xmreg {
// transcation in the block
vector<crypto::hash> tx_hashes = blk.tx_hashes;
bool have_txs = !blk.tx_hashes.empty();
// initalise page tempate map with basic info about blockchain
mstch::map context {
{"blk_hash" , blk_hash_str},

View File

@ -1,15 +1,15 @@
<div>
<H3>Block hash (height): {{blk_hash}} ({{blk_height}})</H3>
<H4>Block hash (height): {{blk_hash}} ({{blk_height}})</H4>
{{#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_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}}
@ -18,7 +18,7 @@
<tr>
<td>Timestamp [UCT]:</td><td>{{blk_timestamp}}</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>
<td>Major version:</td><td>{{major_ver}}</td>