aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2023-08-30 14:38:47 -0700
committerMartin Zumsande <mzumsande@gmail.com>2023-10-03 14:36:04 -0400
commitdf69b22f2e3cc03764a582f29a16a36114f67e17 (patch)
tree1683190ffe1e5af73d57f8a73816e15ef931865c /src/net.h
parentadc171edf45ec90857d990b8ec570f3c8c2242b7 (diff)
doc: improve documentation around connection limit maximums
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 19c613ab63..b746e5a638 100644
--- a/src/net.h
+++ b/src/net.h
@@ -1474,8 +1474,19 @@ private:
std::unique_ptr<CSemaphore> semOutbound;
std::unique_ptr<CSemaphore> semAddnode;
+
+ /**
+ * Maximum number of automatic connections permitted, excluding manual
+ * connections but including inbounds. May be changed by the user and is
+ * potentially limited by the operating system (number of file descriptors).
+ */
int m_max_automatic_connections;
+ /*
+ * Maximum number of peers by connection type. Might vary from defaults
+ * based on -maxconnections init value.
+ */
+
// How many full-relay (tx, block, addr) outbound peers we want
int m_max_outbound_full_relay;
@@ -1487,6 +1498,7 @@ private:
int m_max_feeler{MAX_FEELER_CONNECTIONS};
int m_max_automatic_outbound;
int m_max_inbound;
+
bool m_use_addrman_outgoing;
CClientUIInterface* m_client_interface;
NetEventsInterface* m_msgproc;