aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/integer.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-03-11 12:06:12 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-03-11 12:51:26 +0000
commit7a861a62c164ab9b07d6fca09b6a8176e688f1f6 (patch)
treeb4376f8c8696c7e0a5e79421366d45874a0564e8 /src/test/fuzz/integer.cpp
parent47a263108b05c7039baba5618656898312a7a5ef (diff)
tests: Fuzz HasAllDesirableServiceFlags(...) and MayHaveUsefulAddressDB(...)
Diffstat (limited to 'src/test/fuzz/integer.cpp')
-rw-r--r--src/test/fuzz/integer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/fuzz/integer.cpp b/src/test/fuzz/integer.cpp
index 350d3d3331..980042e811 100644
--- a/src/test/fuzz/integer.cpp
+++ b/src/test/fuzz/integer.cpp
@@ -14,6 +14,7 @@
#include <netbase.h>
#include <policy/settings.h>
#include <pow.h>
+#include <protocol.h>
#include <pubkey.h>
#include <rpc/util.h>
#include <script/signingprovider.h>
@@ -216,4 +217,10 @@ void test_one_input(const std::vector<uint8_t>& buffer)
stream >> deserialized_b;
assert(b == deserialized_b && stream.empty());
}
+
+ {
+ const ServiceFlags service_flags = (ServiceFlags)u64;
+ (void)HasAllDesirableServiceFlags(service_flags);
+ (void)MayHaveUsefulAddressDB(service_flags);
+ }
}