v30.3-roots.1 · Commit 3: [PATCH 03/68] feat(policy): preserve Roots relay and network controls on Core 30.3
src/net_permissions.h
Before: src/net_permissions.h · After: src/net_permissions.h
File metadata
index c93e18e160ce9955249b757d4084aec33ec45098..8cde764c2e944c807e415280d93e08107bb97a1d 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. The two line-number columns refer to before and after.
src/net_permissions.h
CHANGED
|
@@ -40,11 +40,19 @@ enum class NetPermissionFlags : uint32_t {
|
|
|
40
40
|
// Can request addrs without hitting a privacy-preserving cache, and send us
|
|
41
41
|
// unlimited amounts of addrs.
|
|
42
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),
|
|
43
51
|
|
|
44
52
|
// True if the user did not specifically set fine-grained permissions with
|
|
45
53
|
// the -whitebind or -whitelist configuration options.
|
|
46
54
|
Implicit = (1U << 31),
|
|
47
|
-
All = BloomFilter | ForceRelay | Relay | NoBan | Mempool | Download | Addr,
|
|
55
|
+
All = BloomFilter | ForceRelay | Relay | NoBan | Mempool | Download | Addr | BlockFilters | ForceInbound,
|
|
48
56
|
};
|
|
49
57
|
static inline constexpr NetPermissionFlags operator|(NetPermissionFlags a, NetPermissionFlags b)
|
|
50
58
|
{
|