From 5ca2475732e6b0e77a0f78cec418ae86a7531abf Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 18 Apr 2023 19:48:16 +0200 Subject: [PATCH] Wallet: always update sync status if heightsRefresh succeeds --- src/libwalletqt/Wallet.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index db1cc65..05cff82 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -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)) {