aboutsummaryrefslogtreecommitdiff
path: root/src/util/asmap.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2019-12-18 14:27:03 -0500
committerGleb Naumenko <naumenko.gs@gmail.com>2019-12-18 14:27:03 -0500
commit8feb4e4b667361bf23344149c01594abebd56fdb (patch)
treedec8069422964d91614770ee7966b8f58d9ee2bc /src/util/asmap.h
parent89a1f7a250ef70ff2d65701564f1e24bb9280d90 (diff)
Add asmap utility which queries a mapping
The scripts for creating a compact IP->ASN mapping are here: https://github.com/sipa/asmap Co-authored-by: Pieter Wuille <pieter.wuille@gmail.com>
Diffstat (limited to 'src/util/asmap.h')
-rw-r--r--src/util/asmap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/asmap.h b/src/util/asmap.h
new file mode 100644
index 0000000000..a0e14013c5
--- /dev/null
+++ b/src/util/asmap.h
@@ -0,0 +1,10 @@
+// Copyright (c) 2019 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_UTIL_ASMAP_H
+#define BITCOIN_UTIL_ASMAP_H
+
+uint32_t Interpret(const std::vector<bool> &asmap, const std::vector<bool> &ip);
+
+#endif // BITCOIN_UTIL_ASMAP_H