From fffd8dca2de39ad4a683f0dce57cdca55ed2f600 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 2 Apr 2020 18:18:08 -0700 Subject: Add asmap sanity checker --- src/netaddress.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/netaddress.cpp') diff --git a/src/netaddress.cpp b/src/netaddress.cpp index 228caf74a..e0b27b1d7 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -894,3 +894,8 @@ 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& asmap) +{ + return SanityCheckASMap(asmap, 128); // For IP address lookups, the input is 128 bits +} -- cgit v1.2.3