aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGreg Sanders <gsanders87@gmail.com>2023-05-16 15:36:38 -0400
committerGreg Sanders <gsanders87@gmail.com>2023-05-23 13:07:49 -0400
commit03423f8bd12b95a06a4a9d8377e781625dd38aae (patch)
treef8ab6335e73a791de8791c36d917116c7b735e62 /src/net.h
parent13f9b20b4cb2f3f26e81184a77e9cf1f626d4f57 (diff)
Support up to 3 parallel compact block txn fetchings
A single outbound slot is required, so if the first two slots are taken by inbound in-flights, the node will reject additional unless they are coming from outbound. This means in the case where a fast sybil peer is attempting to stall out a node, a single high bandwidth outbound peer can mitigate the attack.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 908b16f35e..83fe0427d4 100644
--- a/src/net.h
+++ b/src/net.h
@@ -200,7 +200,9 @@ public:
int nVersion;
std::string cleanSubVer;
bool fInbound;
+ // We requested high bandwidth connection to peer
bool m_bip152_highbandwidth_to;
+ // Peer requested high bandwidth connection
bool m_bip152_highbandwidth_from;
int m_starting_height;
uint64_t nSendBytes;