Skip to content

Commit

Permalink
Use patched lwk_wollet to full scan up to derivation index
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeross committed Oct 17, 2024
1 parent 515e811 commit bced460
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ flutter_rust_bridge = { version = "=2.4.0", features = [
log = { workspace = true }
lwk_common = "0.7.0"
lwk_signer = "0.7.0"
lwk_wollet = { git = "https://github.com/dangeross/lwk", branch = "savage-try-headers-subscribe" }
lwk_wollet = { git = "https://github.com/dangeross/lwk", branch = "savage-full-scan-to-index" }
#lwk_wollet = "0.7.0"
rusqlite = { version = "0.31", features = ["backup", "bundled"] }
rusqlite_migration = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion lib/core/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ impl OnchainWallet for LiquidOnchainWallet {
true,
true,
))?;
lwk_wollet::full_scan_with_electrum_client(&mut wallet, &mut electrum_client)?;
let index = self.persister.get_last_derivation_index()?.unwrap_or_default();
lwk_wollet::full_scan_to_index_with_electrum_client(&mut wallet, index, &mut electrum_client)?;
Ok(())
}

Expand Down

0 comments on commit bced460

Please sign in to comment.