fix: always execteassadsfix: run full scan on misaligned tips

This commit is contained in:
yse
2025-03-05 22:59:11 +01:00
parent ae1a7fbf96
commit 3e2f2dbc74

View File

@@ -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();