We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae0295 commit fa309eeCopy full SHA for fa309ee
src/bench/addrman.cpp
@@ -5,6 +5,7 @@
5
#include <addrman.h>
6
#include <bench/bench.h>
7
#include <random.h>
8
+#include <util/check.h>
9
#include <util/time.h>
10
11
#include <optional>
@@ -110,7 +111,8 @@ static void AddrManGood(benchmark::Bench& bench)
110
111
* we want to do the same amount of work in every loop iteration. */
112
113
bench.epochs(5).epochIterations(1);
- const size_t addrman_count{bench.epochs() * bench.epochIterations()};
114
+ const uint64_t addrman_count{bench.epochs() * bench.epochIterations()};
115
+ Assert(addrman_count == 5U);
116
117
std::vector<std::unique_ptr<CAddrMan>> addrmans(addrman_count);
118
for (size_t i{0}; i < addrman_count; ++i) {
0 commit comments