1 minor finding · 1 suggestion
Earlier concerns neither republished nor resolved: 1 major finding. See the Run archive for their assessments.
Findings
[minor] · Configured HB matching differs from the documented connection scope
Numeric tags can apply beyond added-node connections, while hostname tags can miss an already-connected address-origin peer; the documentation does not explain this distinction, and the hostname scenario's production frequency is unconfirmed.
Location: src/net.cpp:3872 (head).
Details and suggested fix
IsBip152HighBandwidthAddedNode matches endpoint identity, not the path that opened the connection. Thus onetry, -connect, anchors, and automatic connections reached through numeric aliases can inherit a configured tag, despite the release note describing only connections opened for the added node. Conversely, if addrman or an anchor first connects to a tagged hostname's IP:port, the existing peer has a numeric name and cannot match that hostname through LookupNumeric. ConnectNode then refuses the added-node connection as a duplicate. Classification happens once, so configured status remains absent while that connection lasts, although ordinary automatic HB selection is still possible and a later connection opened by hostname can recover it.
Keeping endpoint matching is reasonable, but document its scope in the release note and -addnode help: matching manual, outbound-full-relay, and block-relay connections can inherit numeric tags regardless of origin; hostname tags require the configured destination name. Recommend numeric targets when operators need matching independent of connection origin.
Optional improvements
[suggestion] · Extra configured HB peers can repeat mempool scans under cs_main
When missing transactions keep a new block outstanding, additional configured HB peers can each trigger a full mempool scan under cs_main; this CPU and locking cost is unmeasured and absent from the bandwidth-only warning.
Location: src/net_processing.cpp:4127 (head).
Details and suggested fix
Configured peers bypass the automatic three-peer rotation and pass the unsolicited compact-block admission check. Once three downloads of the same near-tip block are in flight, further announcements take the optimistic InitData path, still holding cs_main. InitData also takes pool->cs while calculating short IDs across the mempool. If reconstruction needs a GETBLOCKTXN round trip, additional compact blocks arriving before completion can repeat that full scan because missing transactions prevent its early exit. Once the block is stored, later arrivals return immediately. This expands access to an existing reconstruction path rather than changing its algorithm. The extra peers are operator-selected, and the chainwork and height guards still apply. Mention the possible CPU and lock cost alongside redundant bandwidth in the release note and help, so operators can account for both when choosing how many peers to tag.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [major]: Configured peers can exceed BIP152’s high-bandwidth peer limit