aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.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/addrman.cpp
parent07a9eccb60485e71494664cc2b1964ae06a3dcf0 (diff)
downloadbitcoin-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/addrman.cpp')
-rw-r--r--src/addrman.cpp3
1 files changed, 2 insertions, 1 deletions
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 <logging.h>
#include <netaddress.h>
#include <serialize.h>
+#include <util/asmap.h>
#include <cmath>
#include <optional>
@@ -1028,7 +1029,7 @@ std::vector<bool> 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 {};
}