← 输入框|github.com|刷新
Skip to content

net: Log block requests and arrivals - #121

Merged
rustaceanrob merged 1 commit into
kernel-node:masterfrom
pzafonte:log-block-download
Nov 15, 2026
Merged

rustaceanrob merged 1 commit into
kernel-node:masterfrom
pzafonte:log-block-download

Conversation

@pzafonte

Copy link
Copy Markdown
Collaborator

When the tip stops moving during IBD, the logs don't show whether blocks are still arriving or which peer holds the one the tip needs.

This logs each block requested and received at debug level, with the hash and the peer, like Core's request and receipt lines. RUST_LOG=info,net=debug turns them on.

On a full signet sync these lines tied each pause in the tip to a peer. Most pauses waited on a large block. The longest one came from one peer that kept going silent past the stall timeout and stayed connected for about half an hour, because the stall check only runs when a message arrives. Running that check on a timer is my next PR.

Comment thread src/net/peer.rs Resolved
@rustaceanrob
rustaceanrob merged commit 13f3c85 into kernel-node:master Nov 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants