Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Scan for the next 1000 addresses
Browse files Browse the repository at this point in the history
1000 is a number chosen at random that will hopefully get us through
this until the upstream bug is fixed. We should revert this to `None` as
soon as BDK handles this case gracefully.

Fixes #965.

Seems to be an upstream bug: bitcoindevkit/bdk#521.
  • Loading branch information
thomaseizinger committed Jan 10, 2022
1 parent 58434af commit ef0afcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Actor {

fn sync_internal(&mut self) -> Result<WalletInfo> {
self.wallet
.sync(NoopProgress, None)
.sync(NoopProgress, Some(1000))
.context("Failed to sync wallet")?;

let balance = self.wallet.get_balance()?;
Expand Down

0 comments on commit ef0afcd

Please sign in to comment.