feat(wallet): maintain derived-account rolling lookahead#93
Open
ben-kaufman wants to merge 2 commits into
Open
feat(wallet): maintain derived-account rolling lookahead#93ben-kaufman wants to merge 2 commits into
ben-kaufman wants to merge 2 commits into
Conversation
ben-kaufman
force-pushed
the
codex/derived-account-rolling-lookahead
branch
from
July 15, 2026 11:12
054698f to
b8c959c
Compare
ben-kaufman
marked this pull request as ready for review
July 15, 2026 11:15
ben-kaufman
force-pushed
the
codex/derived-account-rolling-lookahead
branch
from
July 17, 2026 21:22
b8c959c to
e676d20
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OnchainWalletAccountNotRegisteredconsistently for unloaded derived accounts0.7.0-rc.57, and regenerate native binding artifactsMotivation
An exported xpub may issue receive addresses independently of the node. After the initial full scan, incremental sync previously covered only scripts already revealed to BDK, so later activity at a higher remote-derived index could remain undiscovered until the account was reconstructed.
Derived accounts now scan a rolling window beyond their highest revealed receive index. Activity inside that window advances and replenishes it without revealing unused addresses.
reveal_receive_addresses_to_accountremains available when an external issuer may skip beyond the current lookahead.Stacking
This PR is stacked on #92 (
codex/derived-account-lifecycle-parity) and rebased onto its latest head. It should be retargeted tomainafter #92 merges.Verification
cargo fmt --checkgit diff --checkcargo test --offline -p bdk-wallet-aggregate(38 passed)cargo test --offline --lib(77 passed)cargo test --offline --features uniffi --lib(87 passed)cargo check --offline --all-targets --all-features./bindgen.sh, including JVM build, Android Maven-local publish, native-symbol checks, and 16 KiB alignment checksPackage.swift:930c0eb9b043a23cd519e1dec4697f51f9c8ad669a303f18da902b5943840d00cargo test --offline --docpasses 11 of 12 doctests. The unchangedNode::list_payments_with_filterexample fails at runtime withWalletSetupFailed; this is inherited from the #92 base and is outside this PR's diff.Release