Skip to content

fix(cbf): implement gap-limit scanning and wait for initial sync#8

Closed
febyeji wants to merge 1 commit intoadd-cbf-chain-sourcefrom
fix-cbf-gap-limit
Closed

fix(cbf): implement gap-limit scanning and wait for initial sync#8
febyeji wants to merge 1 commit intoadd-cbf-chain-sourcefrom
fix-cbf-gap-limit

Conversation

@febyeji
Copy link
Copy Markdown
Owner

@febyeji febyeji commented Apr 1, 2026

  • The CBF on-chain wallet sync was missing iterative gap-limit scanning, causing wallet recovery to miss funds at derivation indices beyond the initial stop_gap window.
  • Additionally, last_active_indices was always empty, so BDK never advanced its keychain derivation index.

@febyeji febyeji force-pushed the fix-cbf-gap-limit branch 6 times, most recently from ee78940 to a1c4556 Compare April 1, 2026 17:30
- Iterative gap-limit scanning for wallet recovery
- Auto-restart CBF node with exponential backoff on unexpected exit
  (e.g. NoReachablePeers), preventing stale requester channels
- Retry logic with backoff for filter scans and block fetches
- Partial progress preservation on scan failure or timeout
- Test helpers for CBF-specific sync waiting

Co-authored-by: AI Assistant (Claude)
@febyeji febyeji force-pushed the fix-cbf-gap-limit branch from a1c4556 to 48011cd Compare April 2, 2026 06:54
@febyeji febyeji closed this Apr 4, 2026
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.

1 participant