Earlier concerns neither republished nor resolved: 5 suggestions. See the Run archive for their assessments.
The review is inconclusive; no findings were published.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Declare the block-inventory lock exclusion
- [suggestion]: Describe the BIP35 response as filtered
- [suggestion]: Describe the fallback as announcing a queued block
- [suggestion]: Tx-inventory helper comments omit the required trickle-timer gate (earlier report)
- [suggestion]: Early-return helpers can have their results ignored without a warning (earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Manual connections express operator intent to retain a peer, even when it is temporarily unsuitable for block downloads. Stall handling therefore releases its in-flight requests instead of disconnecting it, allowing other peers to unblock IBD. This exemption was deliberately restricted to the block-stalling path rather than extended to block-download or headers-sync timeouts.
CheckBlockDownloadStall() must distinguish pausing a manual peer from disconnecting an ordinary peer. Its successful handling of a stall is not equivalent to setting fDisconnect, and manual status must not become blanket immunity from later timeout checks.
The recovery skip originally prevented per-peer SendMessages ordering from immediately assigning released blocks back to the same manual peer. The predecessor's resulting cooldown policy additionally prevents scarce IBD download slots from returning immediately to the stalled peer, while allowing it to become eligible again later.
The immediate return is a recovery/control-flow signal even when the connection remains alive. The extracted helper must preserve that return to its caller, while the separate block-request eligibility check preserves the longer cooldown. The pinned functional test expects reassignment to another peer, completion of IBD, no manual-peer block requests during cooldown, and resumed eligibility afterward.
Ping responsiveness is not an independent measure of peer usefulness while downloading blocks: serving peers prioritize block requests, and the downloader's own constrained bandwidth can delay a pong past the ping timeout. The predecessor therefore suspended ping timeout enforcement while blocks are in flight and added a grace period after the last block, relying meanwhile on block-download, stall, and socket-inactivity timeouts.
CheckBlockSyncTimeouts() must retain block-timeout priority, the empty-in-flight requirement for ping enforcement, and the post-block pong grace period. This protects compatibility with useful block-serving peers under slow local download conditions without removing the other liveness safeguards.
Ralph's inferences
The helper's true result means 'end this SendMessages pass,' not 'the peer was disconnected.' Preserving that distinction retains the base sequence: handle a stall and adaptive backoff, then return before in-flight timeout, ping timeout, headers timeout, eviction, GETDATA scheduling, and the trailing feefilter send. In particular, clearing a manual peer's in-flight requests must not cause the same pass to fall through into the now-eligible empty-in-flight ping check.
Both base and head perform this short-circuit even for a paused manual peer. Returning only when fDisconnect is set would change the established sequence. The inspected history supports the recovery skip, but does not establish that every skipped downstream operation was a separate intentional policy choice.
The early return is pass-local, whereas the cooldown is block-download-specific. A later pass can run the other timeout checks and schedule transaction requests while block requests remain paused. Compatibility also includes retaining the existing timeout qualifications: local-bandwidth compensation and bounded stall backoff, validated-download peer accounting, and the distinct headers-timeout NoBan reset behavior.
The extraction must preserve recovery without turning the cooldown into a general suspension of peer processing. Manual connection status and NoBan permission remain separate concepts; headers state reset continues processing, whereas a handled block stall ends the pass.