Skip to content

Make stop_gap for Esplora/Electrum configurable#957

Merged
tnull merged 2 commits into
lightningdevkit:mainfrom
tnull:2026-06-configurable-stop-gap
Jul 2, 2026
Merged

Make stop_gap for Esplora/Electrum configurable#957
tnull merged 2 commits into
lightningdevkit:mainfrom
tnull:2026-06-configurable-stop-gap

Conversation

@tnull

@tnull tnull commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes #843.

We make the stop_gap parameter for Esplora/Electrum syncing configurable, though clamp it to [1;1000].

tnull added 2 commits July 1, 2026 13:01
Expose the BDK full-scan stop gap on Esplora sync config so
wallet recovery can scan past the previous fixed gap when needed.

Clamp out-of-range values at full-scan time and warn about the
effective value, keeping the default behavior unchanged.

Co-Authored-By: HAL 9000
Expose the bounded BDK full-scan stop gap for Electrum so
restore behavior can be tuned consistently across remote backends.

Document that the setting applies only to BDK full_scan calls and
keeps incremental sync unaffected.

Co-Authored-By: HAL 9000
@tnull tnull requested a review from benthecarman July 1, 2026 15:22
@ldk-reviews-bot

ldk-reviews-bot commented Jul 2, 2026

Copy link
Copy Markdown

I've assigned @tankyleo as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot ldk-reviews-bot requested a review from tankyleo July 2, 2026 01:34
@tnull tnull merged commit 1d40ed0 into lightningdevkit:main Jul 2, 2026
23 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.

Make BDK_CLIENT_STOP_GAP and BDK_WALLET_SYNC_TIMEOUT_SECS configurable

3 participants