aboutsummaryrefslogtreecommitdiff
path: root/src/bench/addrman.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-09-09 08:48:03 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-09-09 08:30:53 +0200
commitfa309ee61c09726a8780acaea94502712f817921 (patch)
treefa131546b6d5877a4417a92b5ceeea610ac3fcb5 /src/bench/addrman.cpp
parentfae0295a799499268caca9c385ac4d7061543980 (diff)
downloadbitcoin-fa309ee61c09726a8780acaea94502712f817921.tar.xz
bench: Fix 32-bit compilation failure in addrman bench
Diffstat (limited to 'src/bench/addrman.cpp')
-rw-r--r--src/bench/addrman.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bench/addrman.cpp b/src/bench/addrman.cpp
index 8fbb68c04c..e5dd571a4c 100644
--- a/src/bench/addrman.cpp
+++ b/src/bench/addrman.cpp
@@ -5,6 +5,7 @@
#include <addrman.h>
#include <bench/bench.h>
#include <random.h>
+#include <util/check.h>
#include <util/time.h>
#include <optional>
@@ -110,7 +111,8 @@ static void AddrManGood(benchmark::Bench& bench)
* we want to do the same amount of work in every loop iteration. */
bench.epochs(5).epochIterations(1);
- const size_t addrman_count{bench.epochs() * bench.epochIterations()};
+ const uint64_t addrman_count{bench.epochs() * bench.epochIterations()};
+ Assert(addrman_count == 5U);
std::vector<std::unique_ptr<CAddrMan>> addrmans(addrman_count);
for (size_t i{0}; i < addrman_count; ++i) {