]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Wallet: always update sync status if heightsRefresh succeeds
authortobtoht <tob@featherwallet.org>
Tue, 18 Apr 2023 17:48:16 +0000 (19:48 +0200)
committertobtoht <tob@featherwallet.org>
Tue, 18 Apr 2023 17:48:16 +0000 (19:48 +0200)
src/libwalletqt/Wallet.cpp

index db1cc65c04593daaab87ea018e5de460ccd6f515..05cff82d109add099e2a7bc9490731b56e83cd8a 100644 (file)
@@ -374,13 +374,11 @@ void Wallet::onHeightsRefreshed(bool success, quint64 daemonHeight, quint64 targ
     if (success) {
         quint64 walletHeight = blockChainHeight();
 
-        if (this->connectionStatus() != Wallet::ConnectionStatus_Disconnected) {
-            if (daemonHeight < targetHeight) {
-                emit blockchainSync(daemonHeight, targetHeight);
-            }
-            else {
-                this->syncStatusUpdated(walletHeight, daemonHeight);
-            }
+        if (daemonHeight < targetHeight) {
+            emit blockchainSync(daemonHeight, targetHeight);
+        }
+        else {
+            this->syncStatusUpdated(walletHeight, daemonHeight);
         }
 
         if (walletHeight < (daemonHeight - 1)) {