aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/net.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-09-07 13:31:10 +0100
committerJohn Newbery <john@johnnewbery.com>2021-09-07 13:31:10 +0100
commitbfdf4ef334a16ef6108a658bf4f8514754128c18 (patch)
treed26a8ee394821720ca9b5e67180dc0352c69ff30 /src/test/fuzz/net.cpp
parent07a9eccb60485e71494664cc2b1964ae06a3dcf0 (diff)
[asmap] Remove SanityCheckASMap() from netaddress
SanityCheckASMap(asmap, bits) simply calls through to SanityCheckASMap(asmap) in util/asmap. Update all callers to simply call that function.
Diffstat (limited to 'src/test/fuzz/net.cpp')
-rw-r--r--src/test/fuzz/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/net.cpp b/src/test/fuzz/net.cpp
index ff0259c182..0929376045 100644
--- a/src/test/fuzz/net.cpp
+++ b/src/test/fuzz/net.cpp
@@ -14,6 +14,7 @@
#include <test/fuzz/util.h>
#include <test/util/net.h>
#include <test/util/setup_common.h>
+#include <util/asmap.h>
#include <cstdint>
#include <optional>
@@ -39,7 +40,7 @@ FUZZ_TARGET_INIT(net, initialize_net)
},
[&] {
const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider);
- if (!SanityCheckASMap(asmap)) {
+ if (!SanityCheckASMap(asmap, 128)) {
return;
}
CNodeStats stats;