aboutsummaryrefslogtreecommitdiff
path: root/src/net_permissions.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2020-06-03 18:51:34 +0300
committerGleb Naumenko <naumenko.gs@gmail.com>2020-07-30 14:38:50 +0300
commitcf1569e074505dbbb9d29422803dd31bb62072d4 (patch)
treed86245d33855ec83bc82125b50776dc448572c35 /src/net_permissions.h
parentacd6135b43941fa51d52f5fcdb2ce944280ad01e (diff)
Add addr permission flag enabling non-cached addr sharing
Diffstat (limited to 'src/net_permissions.h')
-rw-r--r--src/net_permissions.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net_permissions.h b/src/net_permissions.h
index a9633ee2ae..5b68f635a7 100644
--- a/src/net_permissions.h
+++ b/src/net_permissions.h
@@ -29,10 +29,12 @@ enum NetPermissionFlags {
PF_NOBAN = (1U << 4) | PF_DOWNLOAD,
// Can query the mempool
PF_MEMPOOL = (1U << 5),
+ // Can request addrs without hitting a privacy-preserving cache
+ PF_ADDR = (1U << 7),
// True if the user did not specifically set fine grained permissions
PF_ISIMPLICIT = (1U << 31),
- PF_ALL = PF_BLOOMFILTER | PF_FORCERELAY | PF_RELAY | PF_NOBAN | PF_MEMPOOL | PF_DOWNLOAD,
+ PF_ALL = PF_BLOOMFILTER | PF_FORCERELAY | PF_RELAY | PF_NOBAN | PF_MEMPOOL | PF_DOWNLOAD | PF_ADDR,
};
class NetPermissions