2 suggestions
Optional improvements
[suggestion] · GETDATA helper comment omits the private-broadcast path
The new comment describes GETDATA requests as queued for ProcessGetData(), but private-broadcast connections bypass that queue.
Location: src/net_processing.cpp:1058 (head).
Details and suggested fix
ProcessMessage() explicitly permits GETDATA on successfully connected private-broadcast connections. After the common inventory-size check, this branch either sends the single announced transaction directly and queues a ping, or marks the peer for disconnection. It then returns before queue insertion. The moved behavior is unchanged; the issue is the new comment's unconditional queue description. Describe private-broadcast handling separately and qualify queueing and ProcessGetData() servicing as the path for other connections.
[suggestion] · PR description misstates the getheaders debug-log change
The PR description says the getheaders log prefix changes to ProcessGetHeaders, but the patch removes the embedded function-name prefix instead.
Location: src/net_processing.cpp:3671 (head).
Details and suggested fix
The old-block-header rejection message changes from ProcessMessage: ignoring request ... to ignoring request ..., not to ProcessGetHeaders: ignoring request .... The logger can separately include the function name with -logsourcelocations, which defaults to false. Update the PR description to say that the embedded __func__ prefix was removed, matching commit 4f7f24d. The request guard and early return are unchanged.