aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-28 21:58:00 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-01-02 15:07:07 +0100
commitfa9949b91414ee0da376a322cee32ba4e3989d8c (patch)
tree10cf748ce8c83c85d6a8f6fc490c42754055fe83 /src/test/util
parentfaaef9434c19e3643322ee442c240c166af5adbd (diff)
fuzz: Add ConsumeWeakEnum helper, Extract ALL_NET_PERMISSION_FLAGS
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/net.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/util/net.h b/src/test/util/net.h
index 5fad570c29..661d21227f 100644
--- a/src/test/util/net.h
+++ b/src/test/util/net.h
@@ -30,6 +30,19 @@ struct ConnmanTestMsg : public CConnman {
bool ReceiveMsgFrom(CNode& node, CSerializedNetMsg& ser_msg) const;
};
+constexpr NetPermissionFlags ALL_NET_PERMISSION_FLAGS[]{
+ NetPermissionFlags::PF_NONE,
+ NetPermissionFlags::PF_BLOOMFILTER,
+ NetPermissionFlags::PF_RELAY,
+ NetPermissionFlags::PF_FORCERELAY,
+ NetPermissionFlags::PF_NOBAN,
+ NetPermissionFlags::PF_MEMPOOL,
+ NetPermissionFlags::PF_ADDR,
+ NetPermissionFlags::PF_DOWNLOAD,
+ NetPermissionFlags::PF_ISIMPLICIT,
+ NetPermissionFlags::PF_ALL,
+};
+
constexpr ConnectionType ALL_CONNECTION_TYPES[]{
ConnectionType::INBOUND,
ConnectionType::OUTBOUND_FULL_RELAY,