diff options
author | John Newbery <john@johnnewbery.com> | 2021-09-07 13:31:10 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-09-07 13:31:10 +0100 |
commit | bfdf4ef334a16ef6108a658bf4f8514754128c18 (patch) | |
tree | d26a8ee394821720ca9b5e67180dc0352c69ff30 /src/test/fuzz/asmap.cpp | |
parent | 07a9eccb60485e71494664cc2b1964ae06a3dcf0 (diff) | |
download | bitcoin-bfdf4ef334a16ef6108a658bf4f8514754128c18.tar.xz |
[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/asmap.cpp')
-rw-r--r-- | src/test/fuzz/asmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/asmap.cpp b/src/test/fuzz/asmap.cpp index 4c5bc0cbf2..d402f8632c 100644 --- a/src/test/fuzz/asmap.cpp +++ b/src/test/fuzz/asmap.cpp @@ -4,6 +4,7 @@ #include <netaddress.h> #include <test/fuzz/fuzz.h> +#include <util/asmap.h> #include <cstdint> #include <vector> @@ -42,7 +43,7 @@ FUZZ_TARGET(asmap) asmap.push_back((buffer[1 + i] >> j) & 1); } } - if (!SanityCheckASMap(asmap)) return; + if (!SanityCheckASMap(asmap, 128)) return; const uint8_t* addr_data = buffer.data() + 1 + asmap_size; CNetAddr net_addr; |