mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-16 20:44:27 +01:00
fix: always execteassadsfix: run full scan on misaligned tips
This commit is contained in:
@@ -176,9 +176,8 @@ impl Recoverer {
|
||||
let wallet_tip = self.onchain_wallet.tip().await;
|
||||
let liquid_tip = self.liquid_chain_service.tip().await?;
|
||||
if wallet_tip.abs_diff(liquid_tip) > LIQUID_TIP_LEEWAY {
|
||||
let msg = format!("Skipping recovery: wallet and liquid chain service tips are too far apart - chain_service_tip {liquid_tip} wallet_tip {wallet_tip}");
|
||||
log::debug!("{msg}");
|
||||
anyhow::bail!(msg)
|
||||
log::debug!("Wallet and liquid chain service tips are too far apart, starting manual wallet sync");
|
||||
self.onchain_wallet.full_scan().await?;
|
||||
}
|
||||
|
||||
let recovery_started_at = utils::now();
|
||||
|
||||
Reference in New Issue
Block a user