aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.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/netaddress.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/netaddress.cpp')
-rw-r--r--src/netaddress.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp
index e7b3377475..b2f4945e3b 100644
--- a/src/netaddress.cpp
+++ b/src/netaddress.cpp
@@ -1242,8 +1242,3 @@ bool operator<(const CSubNet& a, const CSubNet& b)
{
return (a.network < b.network || (a.network == b.network && memcmp(a.netmask, b.netmask, 16) < 0));
}
-
-bool SanityCheckASMap(const std::vector<bool>& asmap)
-{
- return SanityCheckASMap(asmap, 128); // For IP address lookups, the input is 128 bits
-}