From 14f615441dd3d04dfa5fcfb439ba9a40ee91d0e3 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 19 May 2017 07:13:57 +0800 Subject: [PATCH] Alt blocks number added to index2.html --- src/page.h | 3 ++- src/templates/index2.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/page.h b/src/page.h index 374d948..09ecfd6 100644 --- a/src/page.h +++ b/src/page.h @@ -750,7 +750,8 @@ namespace xmreg context["network_info"] = mstch::map { {"difficulty" , j_network_info["difficulty"].get()}, {"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()} }; } } diff --git a/src/templates/index2.html b/src/templates/index2.html index b143591..31fabe2 100644 --- a/src/templates/index2.html +++ b/src/templates/index2.html @@ -39,6 +39,7 @@ Network difficulty: {{difficulty}} | Hash rate: {{hash_rate}} | Fee per kb: {{fee_per_kb}} + | Alt blocks: {{alt_blocks_no}} {{/network_info}}