timestamp added to blocks

master
moneroexamples 8 years ago
parent c23213cd89
commit e710234fcb

@ -758,12 +758,14 @@ namespace xmreg {
{"blk_hash" , blk_hash_str}, {"blk_hash" , blk_hash_str},
{"blk_height" , _blk_height}, {"blk_height" , _blk_height},
{"blk_timestamp" , blk_timestamp}, {"blk_timestamp" , blk_timestamp},
{"blk_timestamp_epoch" , blk.timestamp},
{"prev_hash" , prev_hash_str}, {"prev_hash" , prev_hash_str},
{"next_hash" , next_hash_str}, {"next_hash" , next_hash_str},
{"have_next_hash" , have_next_hash}, {"have_next_hash" , have_next_hash},
{"have_prev_hash" , have_prev_hash}, {"have_prev_hash" , have_prev_hash},
{"have_txs" , have_txs}, {"have_txs" , have_txs},
{"no_txs" , std::to_string(blk.tx_hashes.size())}, {"no_txs" , std::to_string(
blk.tx_hashes.size())},
{"blk_age" , age.first}, {"blk_age" , age.first},
{"delta_time" , delta_time}, {"delta_time" , delta_time},
{"blk_nonce" , blk.nonce}, {"blk_nonce" , blk.nonce},

@ -16,7 +16,7 @@
<table class="center"> <table class="center">
<tr> <tr>
<td>Timestamp [UCT]:</td><td>{{blk_timestamp}}</td> <td>Timestamp [UCT] (epoch):</td><td>{{blk_timestamp}} ({{blk_timestamp_epoch}})</td>
<td>Age {{age_format}}:</td><td>{{blk_age}}</td> <td>Age {{age_format}}:</td><td>{{blk_age}}</td>
<td>Δ [h:m:s]:</td><td>{{delta_time}}</td> <td>Δ [h:m:s]:</td><td>{{delta_time}}</td>
</tr> </tr>

@ -611,7 +611,7 @@ namespace xmreg
uint64_t timestamp_place = double(timestamp-time0) uint64_t timestamp_place = double(timestamp-time0)
/ double(interval_length)*(time_axis_length-1); / double(interval_length)*(time_axis_length-1);
//cout << timestamp_place << endl;
empty_time[timestamp_place + 1] = '*'; empty_time[timestamp_place + 1] = '*';
} }

Loading…
Cancel
Save