From 9bd4c812e8efa98b6862d6c894fa1c2487b6e328 Mon Sep 17 00:00:00 2001 From: Rafael Saes Date: Thu, 15 Aug 2024 18:03:02 -0300 Subject: [PATCH] fix: do not change syncstatus when scanning status is enabled --- cw_bitcoin/lib/electrum_wallet.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index 501d94e54..dc5fe8d3a 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -1917,6 +1917,10 @@ abstract class ElectrumWalletBase } void _syncStatusReaction(SyncStatus syncStatus) async { + if (syncStatus is SyncingSyncStatus) { + return; + } + if (syncStatus is NotConnectedSyncStatus) { // Needs to re-subscribe to all scripthashes when reconnected _scripthashesUpdateSubject = {};