aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/output_distribution.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-25 21:25:23 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-25 22:49:10 +0000
commita59c27465b12581702d9489e574f92f9141f158a (patch)
tree189547cd560af0e01289a6051ec2c0ada34fd0cb /tests/unit_tests/output_distribution.cpp
parentMerge pull request #5486 (diff)
downloadmonero-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.cpp7
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;
};