2 suggestions
Optional improvements
[suggestion] · Peer and addrman RPCs now disagree on linked-IPv4 labels
When an outbound peer uses a linked-IPv4 address also stored in addrman, getpeerinfo reports ipv4 while the changed addrman RPCs report ipv6.
Location: src/rpc/net.cpp:1029 (head).
Details and suggested fix
The addrman labels now use GetNetwork(), but getpeerinfo receives CopyStats()'s ConnectedThroughNetwork() value, which still uses GetNetClass() outside the inbound-onion override. The outbound path preserves the target address, so a successful connection can expose this difference. -netinfo and the GUI retain the peer classification too. Production occurrence is unconfirmed. getpeerinfo already disagreed with getaddrmaninfo counts before this PR; the new mismatch is between the entry labels. If retaining the existing connection-network semantics, explicitly document in the release note that getpeerinfo continues to classify these addresses as ipv4, so callers know the RPC labels are not interchangeable.
[suggestion] · Release note omits the network-filter behavior change
The note describes changed labels but does not tell RPC users that eligible linked-IPv4 addresses now match the getnodeaddresses ipv6 filter instead of ipv4.
Location: doc/release-notes-36746.md:7 (head).
Details and suggested fix
getnodeaddresses forwards its network argument to GetAddr_(), whose comparison changes from GetNetClass() to GetNetwork(). Consequently, eligible 6to4 and Teredo entries that previously matched getnodeaddresses 0 "ipv4" now match "ipv6" instead. Quality filtering and ban/discouragement checks still apply, so this does not guarantee a particular result count. The current sentence accurately describes the new behavior but leaves the filter change implicit. Explicitly state that these addresses now match the ipv6 filter and no longer match ipv4.