Review report

bitcoin/bitcoin: PR #35874

2 suggestions

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · BIP35 permission assertions still depend on randomized trickling

The 60-second mocktime jump can leave the inventory deadline unexpired, causing a rare spurious failure or missed regression; explicit noban permissions would remove this timing dependency.

Location: test/functional/p2p_connection_limits.py:110 (head).

Details and suggested fix

Neither iteration grants NoBan, so a queued BIP35 reply waits for the inbound inventory deadline. NextInvToInbounds samples an exponential interval with a five-second mean, which can exceed the 60-second jump. sync_with_ping() ensures SendMessages runs but does not expire that deadline. The positive case can consequently fail with correct code, while the negative case could pass with the old handler because its queued reply remains unsent. For these two iterations, use -whitelist=noban@127.0.0.1 and -whitelist=noban,mempool@127.0.0.1, respectively, and remove the mocktime jump. NoBan forces trickling and implies Download, not Mempool, so this preserves the permission distinction without changing the surrounding eviction tests.


Link

[suggestion] · Release note omits the NODE_BLOOM prerequisite for relay-disabled permission holders

For an fRelay=false peer, the mempool-permission exemption still requires the node to offer NODE_BLOOM, so default whitelist permissions alone do not ensure a reply.

Location: doc/release-notes-35874.md:4 (head).

Details and suggested fix

With -peerbloomfilters=0, a peer using default -whitelist permissions and fRelay=false has Mempool permission but no TxRelay state. Its request passes the service and upload-target checks, then the handler does nothing because GetTxRelay() is null. Implicit whitelist permissions do not include BloomFilter. Clarify in this standalone release note that the exemption for fRelay=false peers also requires the node to offer NODE_BLOOM through -peerbloomfilters or the explicit bloomfilter permission. This prerequisite already existed before the PR; the suggestion concerns the new documentation, not a runtime regression.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.