aboutsummaryrefslogtreecommitdiff
path: root/src/util/asmap.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2020-04-02 18:18:08 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2020-04-08 16:26:06 -0700
commitfffd8dca2de39ad4a683f0dce57cdca55ed2f600 (patch)
treee86de83adca4ce10b1a46c8f25aa8d4f2bc8f522 /src/util/asmap.h
parent5feefbe6e7b6cdd809eba4074d41dc95a7035f7e (diff)
downloadbitcoin-fffd8dca2de39ad4a683f0dce57cdca55ed2f600.tar.xz
Add asmap sanity checker
Diffstat (limited to 'src/util/asmap.h')
-rw-r--r--src/util/asmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/asmap.h b/src/util/asmap.h
index a0e14013c5..b31e639bb5 100644
--- a/src/util/asmap.h
+++ b/src/util/asmap.h
@@ -5,6 +5,11 @@
#ifndef BITCOIN_UTIL_ASMAP_H
#define BITCOIN_UTIL_ASMAP_H
+#include <stdint.h>
+#include <vector>
+
uint32_t Interpret(const std::vector<bool> &asmap, const std::vector<bool> &ip);
+bool SanityCheckASMap(const std::vector<bool>& asmap, int bits);
+
#endif // BITCOIN_UTIL_ASMAP_H