|
|
@ -1175,6 +1175,10 @@ public:
|
|
|
|
_blk_height, current_blockchain_height);
|
|
|
|
_blk_height, current_blockchain_height);
|
|
|
|
|
|
|
|
|
|
|
|
// initalise page tempate map with basic info about blockchain
|
|
|
|
// initalise page tempate map with basic info about blockchain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string blk_pow_hash_str = pod_to_hex(get_block_longhash(blk, _blk_height));
|
|
|
|
|
|
|
|
uint64_t blk_difficulty = core_storage->get_db().get_block_difficulty(_blk_height);
|
|
|
|
|
|
|
|
|
|
|
|
mstch::map context {
|
|
|
|
mstch::map context {
|
|
|
|
{"testnet" , testnet},
|
|
|
|
{"testnet" , testnet},
|
|
|
|
{"stagenet" , stagenet},
|
|
|
|
{"stagenet" , stagenet},
|
|
|
@ -1192,6 +1196,8 @@ public:
|
|
|
|
{"blk_age" , age.first},
|
|
|
|
{"blk_age" , age.first},
|
|
|
|
{"delta_time" , delta_time},
|
|
|
|
{"delta_time" , delta_time},
|
|
|
|
{"blk_nonce" , blk.nonce},
|
|
|
|
{"blk_nonce" , blk.nonce},
|
|
|
|
|
|
|
|
{"blk_pow_hash" , blk_pow_hash_str},
|
|
|
|
|
|
|
|
{"blk_difficulty" , blk_difficulty},
|
|
|
|
{"age_format" , age.second},
|
|
|
|
{"age_format" , age.second},
|
|
|
|
{"major_ver" , std::to_string(blk.major_version)},
|
|
|
|
{"major_ver" , std::to_string(blk.major_version)},
|
|
|
|
{"minor_ver" , std::to_string(blk.minor_version)},
|
|
|
|
{"minor_ver" , std::to_string(blk.minor_version)},
|
|
|
|