From ef0afcdafb4e0896ac67835587f8662be8d36e43 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 10 Jan 2022 15:00:06 +1100 Subject: [PATCH] Scan for the next 1000 addresses 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: https://github.com/bitcoindevkit/bdk/issues/521. --- daemon/src/wallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/wallet.rs b/daemon/src/wallet.rs index bd05a4cae..e37db9890 100644 --- a/daemon/src/wallet.rs +++ b/daemon/src/wallet.rs @@ -115,7 +115,7 @@ impl Actor { fn sync_internal(&mut self) -> Result { self.wallet - .sync(NoopProgress, None) + .sync(NoopProgress, Some(1000)) .context("Failed to sync wallet")?; let balance = self.wallet.get_balance()?;