From a59c27465b12581702d9489e574f92f9141f158a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 25 Apr 2019 21:25:23 +0000 Subject: unit_tests: fix crash in debug in output_distribution test updating the block size limit needs recent block sizes, so we feed it dummy ones --- tests/unit_tests/output_distribution.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit_tests/output_distribution.cpp b/tests/unit_tests/output_distribution.cpp index 45f2c135b..2f3c78642 100644 --- a/tests/unit_tests/output_distribution.cpp +++ b/tests/unit_tests/output_distribution.cpp @@ -62,6 +62,13 @@ public: return d; } + std::vector get_block_weights(uint64_t start_offset, size_t count) const override + { + std::vector weights; + while (count--) weights.push_back(1); + return weights; + } + uint64_t blockchain_height; }; -- cgit v1.2.3