diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-06 13:28:47 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-08 06:59:03 -0400 |
commit | fa2c2b50d895ff3402b82ce3db69bfc43053b519 (patch) | |
tree | 7a29636a0822e75a6b8734dfc7492c328d836b0b /src/net_permissions.h | |
parent | 399a0d9dc7a15bd4a9184ba19e1f251cfbb450c8 (diff) |
doc: Extract net permissions doc
Diffstat (limited to 'src/net_permissions.h')
-rw-r--r-- | src/net_permissions.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net_permissions.h b/src/net_permissions.h index 962a2159fc..d35c5ee0cd 100644 --- a/src/net_permissions.h +++ b/src/net_permissions.h @@ -2,12 +2,16 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include <netaddress.h> + #include <string> #include <vector> -#include <netaddress.h> #ifndef BITCOIN_NET_PERMISSIONS_H #define BITCOIN_NET_PERMISSIONS_H + +extern const std::vector<std::string> NET_PERMISSIONS_DOC; + enum NetPermissionFlags { PF_NONE = 0, @@ -27,6 +31,7 @@ enum NetPermissionFlags PF_ISIMPLICIT = (1U << 31), PF_ALL = PF_BLOOMFILTER | PF_FORCERELAY | PF_RELAY | PF_NOBAN | PF_MEMPOOL, }; + class NetPermissions { public: @@ -45,6 +50,7 @@ public: flags = static_cast<NetPermissionFlags>(flags & ~f); } }; + class NetWhitebindPermissions : public NetPermissions { public: |