2 suggestions
Earlier concerns neither republished nor resolved: 1 major finding · 3 minor findings · 8 suggestions. See the Run archive for their assessments.
Optional improvements
[suggestion] · Assign() has no direct regression coverage
The tests do not exercise endpoint deduplication or the rules for distributing first attempts, so regressions in those rules could go undetected.
Location: src/test/privbcast_plan_tests.cpp:17 (head).
Details and suggested fix
The suite checks only the mainnet seed list; no unit test calls Assign(). The functional tests use at most two DNS seeds, fewer than SLOTS, and the fuzz target exercises Attempt only. Add table-driven tests that build a Plan with a fixed RNG and synthetic DiscoveryResults. Cover repeated endpoints across seeds and query sets, seeds with no answers, and fewer candidates than opportunities. Assert that endpoints are unique, first opportunities are filled before backups, a seed does not supply two first attempts while another seed still has a candidate, and slot j prefers query set j mod 4 when available. These tests need no sockets or timing.
[suggestion] · SOCKS5 handshake failures are silently dropped for all functional tests
If the node's ordinary SOCKS5 client breaks off the handshake, feature_proxy.py now waits indefinitely on its queue instead of failing promptly.
Location: test/functional/test_framework/socks5.py:164 (head).
Details and suggested fix
Socks5Connection.handle() now logs and returns when the client hangs up before its greeting, authentication, or connect request, and returns after sending 0x05 0xFF when the client offers no acceptable method. These cases are expected for cancelled private-broadcast streams and test_socks_auth_required, but the behavior applies to every user of the shared test server. In feature_proxy.py, the test waits on queue.get() without a timeout and then checks for a Socks5Command; a handshake regression therefore leaves it blocked instead of reporting the queued exception. Add a Socks5Configuration field that defaults to false and enable the tolerance in start_socks5_server().
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Progress publication can stall the job loop on the queue mutex
- [minor]: A due slot can dial after its grace period using a stale clock
- [suggestion]: A delayed first step can forfeit the remaining discovery window
- [suggestion]: Make the queue-cap test independent of the running job's real-time limit (earlier report)
- [suggestion]: Make private-broadcast refusal causes distinguishable to RPC clients (earlier report)
- [major]: Preserve the previous info response during deprecation (earlier report)
- [suggestion]: Check the
-privatebroadcastrefusal message (earlier report) - [minor]: Track removals before recording delayed mempool-add notifications (earlier report)
- [suggestion]: The not-Tor proxy test relies on four exchanges finishing within 240 ms (earlier report)
- [minor]: The descriptor check rejects private broadcast on select() builds with
FD_SETSIZE256 (earlier report) - [suggestion]: The design overstates the bound on first attempts per exit (earlier report)
- [suggestion]: A valid IPv4-only configuration can be rejected despite having a Tor proxy (earlier report)