net: netcheck outbound verification is unthrottled and uncached — the node disconnects healthy peers through its own ClosePeer path
Report
Summary
Netcheck outbound verification is unthrottled/uncached, and the node disconnects
healthy peers: in net/netcheck.go the handshakes limiter (0.2 RPS, burst 3)
is consulted only inbound (:329); verifyPeer is spawned on every ConnectedF
(:342) with no verified-cache, and its decode-failure path ClosePeers the peer
(:449-458) — including when the peer reset the handshake because our own
redundant re-verifications exhausted the peer's budget.
PoC
Executed PoC (attached, TestPoCVerifyPeerNoCacheNoThrottle), two production
hosts: 6 reconnects of the same honest peer → 6 handshakes, 3 denied, and the
initiator disconnected ITSELF from the healthy peer via that ClosePeer path.
Why this is not a duplicate
Distinct from XE-6445 (race + genesis omission, body-verified) and XE-5430 (certsync).
Thread
Thanks for the report. We have read it against the code and it is being handled. We will update this ticket when there is news. https://bounty.xe.network/XE-13016