diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-05-02 11:30:51 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-05-02 11:30:51 +0200 |
commit | 2bf855e3cdfe2726e07cf5f4f4e6f69219e498a6 (patch) | |
tree | c98daca623a2acf3327c324c5a95203227045287 | |
parent | Merge pull request #5493 (diff) | |
parent | unit_tests: fix crash in debug in output_distribution test (diff) | |
download | monero-2bf855e3cdfe2726e07cf5f4f4e6f69219e498a6.tar.xz |
Merge pull request #5497
a59c2746 unit_tests: fix crash in debug in output_distribution test (moneromooo-monero)
-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; }; |