Alt blocks number added to index2.html

This commit is contained in:
moneroexamples 2017-05-19 07:13:57 +08:00
parent c2d78c692b
commit 14f615441d
2 changed files with 3 additions and 1 deletions

View file

@ -750,7 +750,8 @@ namespace xmreg
context["network_info"] = mstch::map { context["network_info"] = mstch::map {
{"difficulty" , j_network_info["difficulty"].get<uint64_t>()}, {"difficulty" , j_network_info["difficulty"].get<uint64_t>()},
{"hash_rate" , difficulty}, {"hash_rate" , difficulty},
{"fee_per_kb" , print_money(j_network_info["fee_per_kb"])} {"fee_per_kb" , print_money(j_network_info["fee_per_kb"])},
{"alt_blocks_no" , j_network_info["alt_blocks_count"].get<uint64_t>()}
}; };
} }
} }

View file

@ -39,6 +39,7 @@
Network difficulty: {{difficulty}} Network difficulty: {{difficulty}}
| Hash rate: {{hash_rate}} | Hash rate: {{hash_rate}}
| Fee per kb: {{fee_per_kb}} | Fee per kb: {{fee_per_kb}}
| Alt blocks: {{alt_blocks_no}}
</h3> </h3>
{{/network_info}} {{/network_info}}