[#NetPermissionFlags] = NetPermissionFlags :mrdocs: Fine‐grained permissions granted to a peer via ‐whitebind or ‐whitelist. == Synopsis Declared in `<net_permissions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class NetPermissionFlags : uint32_t; ---- == Members [cols="1,4"] |=== | Name| Description | `None` | No special permissions. | `BloomFilter` | May query the bloom filter even when ‐peerbloomfilters is disabled. | `Relay` | Relay and accept transactions from this peer even in ‐blocksonly mode, exempt from INV tracking limits. | `ForceRelay` | Always relay transactions from this peer, even if already in the mempool; implies Relay. | `Download` | Allow getheaders during IBD and block download after the maxuploadtarget limit is reached. | `NoBan` | Cannot be banned, disconnected, or discouraged for misbehavior; implies Download. | `Mempool` | May query the mempool. | `Addr` | May request addresses without hitting the privacy cache and may send unlimited addresses. | `Implicit` | Set when the user did not configure fine‐grained permissions via ‐whitebind or ‐whitelist. | `All` | Combination of all fine‐grained permission flags. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:operator_bitor-09.adoc[`operator|`] | Combine two sets of permission flags with a bitwise OR. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#