diff --git a/src/page.h b/src/page.h index c903392..787c734 100644 --- a/src/page.h +++ b/src/page.h @@ -1175,6 +1175,10 @@ public: _blk_height, current_blockchain_height); // 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 { {"testnet" , testnet}, {"stagenet" , stagenet}, @@ -1192,6 +1196,8 @@ public: {"blk_age" , age.first}, {"delta_time" , delta_time}, {"blk_nonce" , blk.nonce}, + {"blk_pow_hash" , blk_pow_hash_str}, + {"blk_difficulty" , blk_difficulty}, {"age_format" , age.second}, {"major_ver" , std::to_string(blk.major_version)}, {"minor_ver" , std::to_string(blk.minor_version)}, diff --git a/src/templates/block.html b/src/templates/block.html index c299f91..94e89ab 100644 --- a/src/templates/block.html +++ b/src/templates/block.html @@ -30,6 +30,11 @@ Total fees:{{sum_fees}} No of txs:{{no_txs}} + + PoW hash:{{blk_pow_hash}} + Difficulty:{{blk_difficulty}} + +

Miner reward transaction