Skip to content

fix: full_scan covers revealed range before applying stop_gap#2182

Open
noahjoeris wants to merge 2 commits intobitcoindevkit:masterfrom
noahjoeris:fix/full_scan
Open

fix: full_scan covers revealed range before applying stop_gap#2182
noahjoeris wants to merge 2 commits intobitcoindevkit:masterfrom
noahjoeris:fix/full_scan

Conversation

@noahjoeris
Copy link
Copy Markdown

Fixes #2057. full_scan now always covers the revealed range before applying the stop_gap

Notes to the reviewers

Replaces #2181. That PR unified full_scan and sync into one path; per @evanlinjin's feedback we're keeping them separate and doing the minimal fix here instead

Changelog notice

Fixed: full_scan now always scans the full revealed range before applying stop_gap past last_revealed.

Checklists

All Submissions:

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

Comment thread crates/electrum/src/bdk_electrum_client.rs
Copy link
Copy Markdown
Member

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this work. The approach is correct and minimal. Just some small things about docs and tests before ACK and merge.

Comment thread crates/core/src/spk_client.rs
Comment thread crates/electrum/tests/test_electrum.rs
Comment thread crates/electrum/tests/test_electrum.rs Outdated
Comment thread crates/esplora/tests/common/mod.rs
@evanlinjin evanlinjin moved this to In Progress in BDK Chain Apr 23, 2026
@evanlinjin evanlinjin added this to the Chain 0.24.0 milestone Apr 23, 2026
@noahjoeris
Copy link
Copy Markdown
Author

Thanks for the review! Addressed all comments. Docs updated, tests expanded and the #![allow(dead_code)] refactor is in its own commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Unintuitive and undocumented full_scan behavior

2 participants