From ad3e14a3aa39088dd109c84deb88cd5f90a26409 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 20 Aug 2017 08:21:38 +0800 Subject: [PATCH] disable alt blocks for now --- main.cpp | 8 ++++---- src/templates/index2.html | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 36da89c..fe7e2e9 100644 --- a/main.cpp +++ b/main.cpp @@ -431,10 +431,10 @@ main(int ac, const char* av[]) return xmrblocks.mempool(true); }); - CROW_ROUTE(app, "/altblocks") - ([&](const crow::request& req) { - return xmrblocks.altblocks(); - }); +// CROW_ROUTE(app, "/altblocks") +// ([&](const crow::request& req) { +// return xmrblocks.altblocks(); +// }); CROW_ROUTE(app, "/robots.txt") ([&]() { diff --git a/src/templates/index2.html b/src/templates/index2.html index 6b5fc86..772e3e0 100644 --- a/src/templates/index2.html +++ b/src/templates/index2.html @@ -40,7 +40,6 @@ | Hash rate: {{hash_rate}} | Fee per kb: {{fee_per_kb}} | Block size limit: {{block_size_limit}} kB - | Alt blocks no: {{^have_alt_block}}{{alt_blocks_no}}{{/have_alt_block}}{{#have_alt_block}}{{alt_blocks_no}}{{/have_alt_block}} {{^is_current_info}} | Data from {{age}} {{age_format}} ago {{/is_current_info}}