Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 5: [PATCH 05/17] feat(net): preserve Roots peer controls and health view on v31

src/net_permissions.h

Before: src/net_permissions.h · After: src/net_permissions.h

File metadata
index fbaa8f1d4cadb911ffb09b481d566be5086c6a0b..45e5c2dc24fd1e2cfc17be83cca68be934fb96e5 100644

Download original patch · Release notes

Diff rows 1–20 of 20. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/net_permissions.h CHANGED
@@ -40,11 +40,19 @@ enum class NetPermissionFlags : uint32_t {
40
  // Can request addrs without hitting a privacy-preserving cache, and send us
41
  // unlimited amounts of addrs.
42
  Addr = (1U << 7),
 
 
 
 
 
 
 
 
43
 
44
  // True if the user did not specifically set fine-grained permissions with
45
  // the -whitebind or -whitelist configuration options.
46
  Implicit = (1U << 31),
47
- All = BloomFilter | ForceRelay | Relay | NoBan | Mempool | Download | Addr,
48
  };
49
  static inline constexpr NetPermissionFlags operator|(NetPermissionFlags a, NetPermissionFlags b)
50
  {
 
40
  // Can request addrs without hitting a privacy-preserving cache, and send us
41
  // unlimited amounts of addrs.
42
  Addr = (1U << 7),
43
+ // Try harder to evict an existing connection if needed to open
44
+ // an inbound slot from this peer
45
+ ForceInbound = (1U << 10) | NoBan,
46
+
47
+ // Can query compact filters even if -peerblockfilters is false
48
+ BlockFilters = (1U << 8),
49
+ // Used to avoid an error when All is used to set BlockFilters
50
+ BlockFilters_Explicit = BlockFilters | (1U << 9),
51
 
52
  // True if the user did not specifically set fine-grained permissions with
53
  // the -whitebind or -whitelist configuration options.
54
  Implicit = (1U << 31),
55
+ All = BloomFilter | ForceRelay | Relay | NoBan | Mempool | Download | Addr | BlockFilters | ForceInbound,
56
  };
57
  static inline constexpr NetPermissionFlags operator|(NetPermissionFlags a, NetPermissionFlags b)
58
  {