Files
bitcoin/test/functional/test_framework
Henry Romp 4e8c4bc794 test: classify SOCKS5 peers via getpeerinfo addrbind
The SOCKS5 destinations factory classified connections by scanning
debug.log for connection attempts to the requested address and port.
The destination is not unique per connection, so the log cannot
identify which attempt is being served: first-match returned a stale
type when an automatic connection reused an address private broadcast
had already used, and latest-match still breaks if two attempts to the
same address overlap.

Match the exact connection instead: the source addr:port of the
proxy's client socket equals the node's addrbind for that peer, so
looking it up in getpeerinfo identifies precisely the connection being
served and returns its connection_type. This also stops treating
debug.log contents as a stable interface.

Co-authored-by: Greg Sanders <gsanders87@gmail.com>
2026-08-04 13:50:33 -04:00
..
2026-07-17 20:09:58 -07:00
2026-07-16 10:29:58 +01:00
2026-06-04 21:58:56 +10:00