#35624 test: cover addnode connection limit
| Reviewability | Reviews | Agreement | Size | ||||
|---|---|---|---|---|---|---|---|
| #35624 test: cover addnode connection limit | Author silent 124d | 0 | Positive | 0 + 77 tests | |||
|
|
|
|
| |||
Reviewability: ReadyStalePaused Agreement: StrongPositivePositive w/ caveatsNeutralMildDisputedBlockedCrickets Reviews: current code-review ACKs, then (+stale ACKs) and -NACKs; greener = more ACKs. Size: lines added or modified outside tests, then in tests; greener = smaller. | |||||||
Goal
Adds a functional test verifying that active manual outbound connections created through the addnode RPC are capped at MAX_ADDNODE_CONNECTIONS (8). The test adds 9 reachable nodes, checks that getaddednodeinfo tracks all 9 entries, and confirms that getpeerinfo and getnetworkinfo show no more than 8 active connections over a stability period.
Problem: Bitcoin Core lacked dedicated functional test coverage verifying that manual outbound peer connections stay capped at 8 when users add more than 8 nodes via the addnode RPC.
Evidence of importance:
- Addresses part of issue #28635 ('Test calling addnode more than once (and MAX_ADDNODE_CONNECTIONS)')
Reviewability
Stale · Author silent 124d
No author activity for 124 days; a review may wait a long time for a response.
Agreement
Positive
support without stated reasons, no open objection (sedited)
Thread notes: Initial record. sedited gave a Concept ACK while requesting the description be rewritten without an LLM; achow101 asked why the PR is in draft.
Objections, suggestions, and questions: none recorded.
Support:
- sedited (contributor) (Concept ACK, 2026-06-30): Concept ACK [not substantive]
Participants:
- sedited (contributor, support, 1 statements 2026-06-30 to 2026-06-30): Concept ACK, asked author to rewrite description in own words
- achow101 (member, neutral, 1 statements 2026-07-23 to 2026-07-23): asked why the PR is in draft
Files
77 lines under test/bench/ci.
- test/functional/rpc_addnode_limits.py +76/-0
- test/functional/test_runner.py +1/-0
Card
The short text the ranking pass compares across PRs.
Adds a functional test covering the MAX_ADDNODE_CONNECTIONS limit (8) for manual outbound connections created via the addnode RPC. It addresses a gap identified in issue #28635, where the behavior of adding more nodes than the manual outbound cap was untested. The test adds 9 reachable target nodes and verifies that all 9 are tracked while active connections remain strictly capped at 8.
Data
thread read through 2026-07-23 (2 statements), head 3be5ceeee7
Discussion read under schema 1 rules: suggestions and questions may be missing, and an objection may combine several harms (schema history).
labels: Tests · draft