Review report

core: PR #36628

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

Link

[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.


Link

[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().


Coverage details

Earlier concerns

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