From bfdf4ef334a16ef6108a658bf4f8514754128c18 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Tue, 7 Sep 2021 13:31:10 +0100 Subject: [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. --- src/addrman.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/addrman.cpp') diff --git a/src/addrman.cpp b/src/addrman.cpp index 986a1a5d4b..fd0d3dc6fa 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -1028,7 +1029,7 @@ std::vector CAddrMan::DecodeAsmap(fs::path path) bits.push_back((cur_byte >> bit) & 1); } } - if (!SanityCheckASMap(bits)) { + if (!SanityCheckASMap(bits, 128)) { LogPrintf("Sanity check of asmap file %s failed\n", path); return {}; } -- cgit v1.2.3