fix: do not change syncstatus when scanning status is enabled

This commit is contained in:
Rafael Saes 2024-08-15 18:03:02 -03:00
parent 40496fbfe7
commit 9bd4c812e8

View file

@ -1917,6 +1917,10 @@ abstract class ElectrumWalletBase
} }
void _syncStatusReaction(SyncStatus syncStatus) async { void _syncStatusReaction(SyncStatus syncStatus) async {
if (syncStatus is SyncingSyncStatus) {
return;
}
if (syncStatus is NotConnectedSyncStatus) { if (syncStatus is NotConnectedSyncStatus) {
// Needs to re-subscribe to all scripthashes when reconnected // Needs to re-subscribe to all scripthashes when reconnected
_scripthashesUpdateSubject = {}; _scripthashesUpdateSubject = {};