diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-02-18 17:08:09 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-02-18 17:08:09 +0200 |
commit | e81829bb52c0cb0ae73f00f264e2beeef086dc14 (patch) | |
tree | bc2c208df6599fff629e13a4c9deb916d87ab876 /tests | |
parent | Merge pull request #5158 (diff) | |
parent | blockchain: fix long term weight addition on pop/init (diff) | |
download | monero-e81829bb52c0cb0ae73f00f264e2beeef086dc14.tar.xz |
Merge pull request #5159
1d628550 blockchain: fix long term weight addition on pop/init (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/block_weight/block_weight.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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; } } |