From c160884dfa022942216f74c7d79d34dde163f917 Mon Sep 17 00:00:00 2001 From: Serhii Date: Wed, 18 Dec 2024 13:18:17 +0200 Subject: [PATCH] prevent setting Synced status when the connection is lost --- cw_bitcoin/lib/electrum_wallet.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index d9041cba4..b3b336249 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -478,6 +478,7 @@ abstract class ElectrumWalletBase if (alwaysScan == true) { _setListeners(walletInfo.restoreHeight); } else { + if (syncStatus is LostConnectionSyncStatus) return; syncStatus = SyncedSyncStatus(); } } catch (e, stacktrace) {