Skip to content

Make stop_gap for Esplora/Electrum configurable#957

Open
tnull wants to merge 2 commits into
lightningdevkit:mainfrom
tnull:2026-06-configurable-stop-gap
Open

Make stop_gap for Esplora/Electrum configurable#957
tnull wants to merge 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
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

1 participant