Skip to content

Commit 20499f1

Browse files
committed
fix(salvium): report node connect result in sync status
updateNode() had the ConnectedSyncStatus and FailedSyncStatus calls commented out, so a failed daemon connection only got logged and the wallet stayed stuck on "Connecting..." forever instead of showing "unable to sync". This uncomments them so connect success and failure are both reflected in the sync status, matching how lib_monero_wallet already behaves. Both status classes are defined in this same file so it compiles as is.
1 parent afb40b8 commit 20499f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/wallets/wallet/intermediate/lib_salvium_wallet.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ abstract class LibSalviumWallet<T extends CryptonoteCurrency>
532532
csSalvium.startListeners(wallet!);
533533
csSalvium.startAutoSaving(wallet!);
534534

535-
// _setSyncStatus(ConnectedSyncStatus());
535+
_setSyncStatus(ConnectedSyncStatus());
536536
} catch (e, s) {
537-
// _setSyncStatus(FailedSyncStatus());
537+
_setSyncStatus(FailedSyncStatus());
538538
Logging.instance.e(
539539
"Exception caught in $runtimeType.updateNode(): ",
540540
error: e,

0 commit comments

Comments
 (0)