Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Enumerations | Functions | Variables
net_permissions.h File Reference
#include <netaddress.h>
#include <netbase.h>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for net_permissions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NetPermissions
 
class  NetWhitebindPermissions
 
class  NetWhitelistPermissions
 

Enumerations

enum class  NetPermissionFlags : uint32_t {
  None = 0 , BloomFilter = (1U << 1) , Relay = (1U << 3) , ForceRelay = (1U << 2) | Relay ,
  Download = (1U << 6) , NoBan = (1U << 4) | Download , Mempool = (1U << 5) , Addr = (1U << 7) ,
  BypassProofRequestLimits = (1U << 30) , Implicit = (1U << 31) , All
}
 

Functions

static constexpr NetPermissionFlags operator| (NetPermissionFlags a, NetPermissionFlags b)
 

Variables

const std::vector< std::string > NET_PERMISSIONS_DOC
 
static const bool DEFAULT_WHITELISTRELAY = true
 Default for -whitelistrelay. More...
 
static const bool DEFAULT_WHITELISTFORCERELAY = false
 Default for -whitelistforcerelay. More...
 

Enumeration Type Documentation

◆ NetPermissionFlags

enum class NetPermissionFlags : uint32_t
strong
Enumerator
None 
BloomFilter 
Relay 
ForceRelay 
Download 
NoBan 
Mempool 
Addr 
BypassProofRequestLimits 
Implicit 
All 

Definition at line 24 of file net_permissions.h.

Function Documentation

◆ operator|()

static constexpr NetPermissionFlags operator| ( NetPermissionFlags  a,
NetPermissionFlags  b 
)
inlinestaticconstexpr

Definition at line 54 of file net_permissions.h.

Variable Documentation

◆ DEFAULT_WHITELISTFORCERELAY

const bool DEFAULT_WHITELISTFORCERELAY = false
static

Default for -whitelistforcerelay.

Definition at line 22 of file net_permissions.h.

◆ DEFAULT_WHITELISTRELAY

const bool DEFAULT_WHITELISTRELAY = true
static

Default for -whitelistrelay.

Definition at line 20 of file net_permissions.h.

◆ NET_PERMISSIONS_DOC

const std::vector<std::string> NET_PERMISSIONS_DOC
extern

Definition at line 12 of file net_permissions.cpp.