From: tobtoht Date: Tue, 18 Apr 2023 17:48:16 +0000 (+0200) Subject: Wallet: always update sync status if heightsRefresh succeeds X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=5ca2475732e6b0e77a0f78cec418ae86a7531abf;p=gamesguru%2Ffeather.git Wallet: always update sync status if heightsRefresh succeeds --- diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index db1cc65c..05cff82d 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)) {