diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-25 21:25:23 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-25 22:49:10 +0000 |
commit | a59c27465b12581702d9489e574f92f9141f158a (patch) | |
tree | 189547cd560af0e01289a6051ec2c0ada34fd0cb /tests | |
parent | Merge pull request #5486 (diff) | |
download | monero-a59c27465b12581702d9489e574f92f9141f158a.tar.xz |
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
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/output_distribution.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<uint64_t> get_block_weights(uint64_t start_offset, size_t count) const override + { + std::vector<uint64_t> weights; + while (count--) weights.push_back(1); + return weights; + } + uint64_t blockchain_height; }; |