Skip to content

Harden PIBD segment retry and recovery#3875

Open
wiesche89 wants to merge 4 commits into
mimblewimble:stagingfrom
wiesche89:pibd_hardening
Open

Harden PIBD segment retry and recovery#3875
wiesche89 wants to merge 4 commits into
mimblewimble:stagingfrom
wiesche89:pibd_hardening

Conversation

@wiesche89

Copy link
Copy Markdown
Contributor

Summary
1/3: PIBD PR #3835

This PR makes the existing PIBD sync path more resilient.
It improves how we track, retry, and recover PIBD segment requests, especially when peers time out, send bad data, or sync is interrupted and later resumed.

Changes

  • Track pending PIBD segments per peer
  • Retry timed-out or dropped segments more reliably
  • Avoid retrying recently rejected bad segments from the same peer
  • Increase the segment timeout to 30s
  • Improve recovery after interrupted PIBD/header sync
  • Discard in-memory prune list changes when rolling back PMMR state

@wiesche89 wiesche89 requested a review from ardocrat June 19, 2026 06:33
Comment thread chain/src/types.rs
Comment thread servers/src/grin/sync/state_sync.rs
Comment thread servers/src/grin/sync/state_sync.rs Outdated
@wiesche89 wiesche89 requested a review from ardocrat June 20, 2026 09:15
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