From 1d62855044eed34f0184a468b90d63414c2a9ebc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 18 Feb 2019 12:44:52 +0000 Subject: blockchain: fix long term weight addition on pop/init --- tests/block_weight/block_weight.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/block_weight/block_weight.cpp b/tests/block_weight/block_weight.cpp index 9b7343ca3..3b0b6f1e6 100644 --- a/tests/block_weight/block_weight.cpp +++ b/tests/block_weight/block_weight.cpp @@ -167,16 +167,9 @@ static void test(test_t t, uint64_t blocks) if (!bc->update_next_cumulative_weight_limit()) { - fprintf(stderr, "Failed to update cumulative weight limit 2\n"); + fprintf(stderr, "Failed to update cumulative weight limit\n"); exit(1); } - if(0)if (!bc->update_next_cumulative_weight_limit()) - { - fprintf(stderr, "Failed to update cumulative weight limit 2\n"); - exit(1); - } -uint64_t last = bc->get_db().get_block_long_term_weight(bc->get_db().height() - 1); -if (last != ltw) std::cout << "Inconsistency at " << h << std::endl; std::cout << "H " << h << ", BW " << w << ", EMBW " << effective_block_weight_median << ", LTBW " << ltw << std::endl; } } -- cgit v1.2.3