]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
fix issue of skip sync bringing paused wallet online
authorgg <chown_tee@proton.me>
Tue, 20 Jan 2026 09:56:24 +0000 (04:56 -0500)
committergg <chown_tee@proton.me>
Tue, 20 Jan 2026 10:09:51 +0000 (05:09 -0500)
src/MainWindow.cpp
src/libwalletqt/Wallet.cpp

index 06fac103ef4784836ce71a8742903b1db9938b4f..a3447f49abd2da4aaa5aa05e82d1cf5c37c50a57 100644 (file)
@@ -276,8 +276,14 @@ void MainWindow::initStatusBar() {
         QString msg = tr("Skip sync will set your wallet's restore height to the current network height.\n\n"
                           "Use this if you know you haven't received any transactions since your last sync.\n"
                           "You can always use 'Full Sync' to rescan from the beginning.\n\n"
+                          "Note: This process could take 30 seconds or more.\n\n"
                           "Continue?");
 
+        if (m_wallet->daemonBlockChainTargetHeight() == 0) {
+            Utils::showError(this, tr("Skip Sync"), tr("Cannot skip to tip: unknown network target height.\nPlease wait for the wallet to connect to a daemon."));
+            return;
+        }
+
         if (QMessageBox::question(this, tr("Skip Sync"), msg) == QMessageBox::Yes) {
             m_wallet->skipToTip();
             this->setStatusText(tr("Skipped sync to tip."));
index 13817c88f61a9036563592397c25da20f02fa8fd..1d6b2945e56bf20ba8597b82d5a724bb116811bb 100644 (file)
@@ -754,8 +754,10 @@ void Wallet::skipToTip() {
     m_wallet2->set_refresh_from_block_height(target);
     m_lastSyncTime = QDateTime::currentDateTime().toMSecsSinceEpoch();
 
-    setConnectionStatus(ConnectionStatus_Synchronized);
-    startRefresh(true);
+    if (!m_syncPaused) {
+        setConnectionStatus(ConnectionStatus_Synchronized);
+        startRefresh(true);
+    }
     emit syncStatus(target, target, true);
 }