Skip to content

WIP net_processing: avoid IBD stall after empty HEADERS - #69

Closed
l0rinc wants to merge 1 commit into
masterfrom
detached446
Closed

l0rinc wants to merge 1 commit into
masterfrom
detached446

Conversation

@l0rinc

@l0rinc l0rinc commented Dec 18, 2025

Copy link
Copy Markdown
Owner

If the selected initial headers-sync peer responds with an empty HEADERS message, keep fSyncStarted from blocking selection of another peer, which can otherwise stall IBD (e.g. when connected via -addnode to a peer still syncing).

Reset the per-peer headers-sync state on empty HEADERS responses and add a functional regression test.

Fixes bitcoin#34096

If the selected initial headers-sync peer responds with an empty HEADERS message, keep fSyncStarted from blocking selection of another peer, which can otherwise stall IBD (e.g. when connected via -addnode to a peer still syncing).

Reset the per-peer headers-sync state on empty HEADERS responses and add a functional regression test.

Fixes bitcoin#34096
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.

IBD stalls if addnode peer is in IBD

1 participant