aboutsummaryrefslogtreecommitdiff
path: root/src/net_permissions.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-09-23 17:00:46 -0700
committerPieter Wuille <pieter@wuille.net>2020-10-12 12:14:53 -0700
commitde11b0a4eff20da3e3ca52dc90948b5253d329c5 (patch)
tree62ffc21d451eab444a4635a110581d645902639b /src/net_permissions.h
parent242d16477df1a024c7126bad23dde39cad217eca (diff)
Reduce MAX_PEER_TX_ANNOUNCEMENTS for non-PF_RELAY peers
Maintaining up to 100000 INVs per peer is excessive, as that is far more than fits in a typical mempool. Also disable the "overload" penalty for PF_RELAY peers.
Diffstat (limited to 'src/net_permissions.h')
-rw-r--r--src/net_permissions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_permissions.h b/src/net_permissions.h
index 5b68f635a7..bba0ea1695 100644
--- a/src/net_permissions.h
+++ b/src/net_permissions.h
@@ -19,6 +19,7 @@ enum NetPermissionFlags {
// Can query bloomfilter even if -peerbloomfilters is false
PF_BLOOMFILTER = (1U << 1),
// 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),
// Always relay transactions from this peer, even if already in mempool
// Keep parameter interaction: forcerelay implies relay