Skip to content

Commit 54617fa

Browse files
committed
Merge bitcoin/bitcoin#21709: doc: update reduce-memory.md and bitcoin.conf -maxconnections info
300234a doc: update bitcoin.conf maxconnections info (Jon Atack) 9268270 doc: update reduce-memory.md peer connections info (Jon Atack) Pull request description: This patch updates the documentation in `doc/reduce-memory.md` and `share/examples/bitcoin.conf` regarding the peer connections limits and `-maxconnections` ACKs for top commit: jarolrod: re-ACK 300234a laanwj: ACK 300234a prayank23: ACK bitcoin/bitcoin@300234a Tree-SHA512: 90f53626124afb50706e6a3b644bc7bb800bb7cf41ae7062c20c17b3d9bdf4a8d73b4cf188faec9113d772596f7e4bc36a4a69481cacb92cc55d5956181d0c31
2 parents 3275c6e + 300234a commit 54617fa

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

doc/reduce-memory.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ The size of some in-memory caches can be reduced. As caches trade off memory usa
2424

2525
## Number of peers
2626

27-
- `-maxconnections=<n>` - the maximum number of connections, this defaults to 125. Each active connection takes up some
28-
memory. This option applies only if incoming connections are enabled, otherwise the number of connections will never
29-
be more than 10. Of the 10 outbound peers, there can be 8 full-relay connections and 2 block-relay-only ones.
27+
- `-maxconnections=<n>` - the maximum number of connections, which defaults to 125. Each active connection takes up some
28+
memory. This option applies only if inbound connections are enabled; otherwise, the number of connections will not
29+
be more than 11. Of the 11 outbound peers, there can be 8 full-relay connections, 2 block-relay-only ones,
30+
and occasionally 1 short-lived feeler or extra outbound block-relay-only connection.
31+
32+
- These limits do not apply to connections added manually with the `-addnode` configuration option or
33+
the `addnode` RPC, which have a separate limit of 8 connections.
3034

3135
## Thread configuration
3236

share/examples/bitcoin.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@
6363
# Port on which to listen for connections (default: 8333, testnet: 18333, signet: 38333, regtest: 18444)
6464
#port=
6565

66-
# Maximum number of inbound+outbound connections.
66+
# Maximum number of inbound + outbound connections (default: 125). This option
67+
# applies only if inbound connections are enabled; otherwise, the number of connections
68+
# will not be more than 11: 8 full-relay connections, 2 block-relay-only ones, and
69+
# occasionally 1 short-lived feeler or extra outbound block-relay-only connection.
70+
# These limits do not apply to connections added manually with the -addnode
71+
# configuration option or the addnode RPC, which have a separate limit of 8 connections.
6772
#maxconnections=
6873

6974
#

0 commit comments

Comments
 (0)