Bitcoin Core has added a guardrail for node operators who configure unusually large numbers of connections. PR #35919, merged October 21, 2026, clamps the maxconnections setting at 2,000 and issues a warning when a requested value exceeds that ceiling. The inspected code retains its existing default of 200.

A backport to the 32.x branch merged on October 22. Those are verified source-code milestones, not evidence that every installed Bitcoin Core binary already contains the change.

The reason for the cap sits beyond the network socket itself. Bitcoin Core's transaction orphanage, which tracks transactions with missing inputs, has resource-management assumptions that can break at extreme peer counts. This patch brings the configuration interface closer to those internal limits.

Why missing inputs create extra work

Transactions can arrive before the transactions they spend. A node therefore needs a way to retain some incomplete information while it waits for the missing pieces. Bitcoin Core calls this holding area the orphanage.

The orphanage's own documentation explains the difficulty: the node cannot immediately distinguish an ordinary missing-input transaction from one referencing inputs that do not exist. It consequently limits announcements, input counts and stored transaction sizes, and evicts entries when resource limits are exceeded.

These controls let a node handle out-of-order information without offering peers unlimited storage or processing work. For an operator, that is an important distinction. A connection consumes resources through the messages and tracking obligations it creates, not only through an open socket.

The patch addresses one interaction between those obligations and a setting an operator can change.

Where a peer allowance can reach zero

The implementation divides a global latency-score budget among peers represented in the orphanage. Its default global budget is 3,000. Integer division can produce a zero per-peer allowance when the number of participating peers exceeds that budget.

Elsewhere, the resource-scoring routine asserts that the per-peer allowance must be positive. The PR identifies the resulting abort risk when more than 3,000 peers have orphan announcements.

This is narrower than saying that any node with many connections will immediately crash. The relevant condition involves orphan announcements and the resource-accounting path. It also does not describe a Bitcoin consensus change: the patch constrains node configuration rather than changing which blocks or transactions are valid under consensus.

The final implementation chooses a bounded configuration setting instead of rewriting orphanage eviction. That engineering choice makes the intended operating range explicit.

What the new ceiling actually covers

The updated option help and startup code describe maxconnections as the limit for automatic peer connections. Manually added connections through addnode and short-lived private-broadcast connections have separate limits.

Accordingly, 2,000 should not be presented as an absolute count of every possible connection. Nor is it a recommendation to raise an ordinary node's setting to that level.

The change applies the cap before reserving file descriptors. Operating-system constraints can still reduce the actual connection allowance further. A server configured for 2,000 connections is not thereby guaranteed the resources to maintain them.

The network constants retain separate limits of eight addnode connections and 64 private-broadcast connections. A new compile-time assertion checks that these allowances, together with the automatic-connection cap, remain below the default orphanage latency budget.

That assertion makes the relationship visible to future developers. Changing one limit without reconsidering the others can fail at build time rather than leaving the mismatch entirely to runtime behavior.

A warning worth reading

The added functional tests exercise a request just above the cap and an extremely large input. They check the reduction warning and preserve a separate test for operating-system file-descriptor constraints. BTC Slopes inspected these tests but did not execute them independently.

For operators, the useful next step is configuration review. If an existing deployment requests more than 2,000 automatic connections, a build containing the patch will no longer honor that request as written. Startup logs should make the reduction visible, and capacity monitoring should use the effective configuration rather than assuming that the configuration file was accepted unchanged.

Operators should also trace the fix into the exact release or packaged build they run. A main-branch merge and a maintenance-branch backport are useful evidence, but distribution packaging can introduce a separate delivery timeline.

The broader lesson is modest and practical: a tunable setting is not proof that every value it accepts is sustainable. By connecting an external knob to an internal accounting constraint, this change reduces one avoidable failure path without asking ordinary users to increase their peer counts.