Changeset View
Changeset View
Standalone View
Standalone View
src/net_permissions.h
Show All 13 Lines | |||||
extern const std::vector<std::string> NET_PERMISSIONS_DOC; | extern const std::vector<std::string> NET_PERMISSIONS_DOC; | ||||
enum NetPermissionFlags { | enum NetPermissionFlags { | ||||
PF_NONE = 0, | PF_NONE = 0, | ||||
// Can query bloomfilter even if -peerbloomfilters is false | // Can query bloomfilter even if -peerbloomfilters is false | ||||
PF_BLOOMFILTER = (1U << 1), | PF_BLOOMFILTER = (1U << 1), | ||||
// Relay and accept transactions from this peer, even if -blocksonly is true | // Relay and accept transactions from this peer, even if -blocksonly is true | ||||
// This peer is also not subject to limits on how many transaction INVs are | |||||
// tracked | |||||
PF_RELAY = (1U << 3), | PF_RELAY = (1U << 3), | ||||
// Always relay transactions from this peer, even if already in mempool or | // Always relay transactions from this peer, even if already in mempool or | ||||
// rejected from policy Keep parameter interaction: forcerelay implies relay | // rejected from policy Keep parameter interaction: forcerelay implies relay | ||||
PF_FORCERELAY = (1U << 2) | PF_RELAY, | PF_FORCERELAY = (1U << 2) | PF_RELAY, | ||||
// Allow getheaders during IBD and block-download after maxuploadtarget | // Allow getheaders during IBD and block-download after maxuploadtarget | ||||
// limit | // limit | ||||
PF_DOWNLOAD = (1U << 6), | PF_DOWNLOAD = (1U << 6), | ||||
// Can't be banned/disconnected/discouraged for misbehavior | // Can't be banned/disconnected/discouraged for misbehavior | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |