diff --git a/src/page.h b/src/page.h index 3b45186..0ff364d 100644 --- a/src/page.h +++ b/src/page.h @@ -827,14 +827,15 @@ namespace xmreg } context["network_info"] = mstch::map { - {"difficulty" , current_network_info.difficulty}, - {"hash_rate" , hash_rate}, - {"fee_per_kb" , print_money(current_network_info.fee_per_kb)}, - {"alt_blocks_no" , current_network_info.alt_blocks_no}, - {"tx_pool_size" , current_network_info.tx_pool_size}, - {"is_current_info" , is_network_info_current}, - {"age" , network_info_age.first}, - {"age_format" , network_info_age.second}, + {"difficulty" , current_network_info.difficulty}, + {"hash_rate" , hash_rate}, + {"fee_per_kb" , print_money(current_network_info.fee_per_kb)}, + {"alt_blocks_no" , current_network_info.alt_blocks_no}, + {"tx_pool_size" , current_network_info.tx_pool_size}, + {"is_current_info" , is_network_info_current}, + {"is_pool_size_zero" , (current_network_info.tx_pool_size == 0)}, + {"age" , network_info_age.first}, + {"age_format" , network_info_age.second}, }; string mempool_html {"Cant get mempool_pool"}; diff --git a/src/templates/mempool_error.html b/src/templates/mempool_error.html index e06c9c3..a003cae 100644 --- a/src/templates/mempool_error.html +++ b/src/templates/mempool_error.html @@ -6,9 +6,9 @@
Mempool data preparation for the front page failed. Its processing - {{#network_info}}{{#tx_pool_size}}({{tx_pool_size}} txs){{/tx_pool_size}}{{/network_info}} + {{#network_info}}{{^is_pool_size_zero}}({{tx_pool_size}} txs){{/is_pool_size_zero}}{{/network_info}} took longer than expected and it timed out. - To view mempool without time constrain, + To view the mempool without time constrain, go to dedicated mempool page: memory pool