mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
Wallet: always update sync status if heightsRefresh succeeds
This commit is contained in:
parent
38d509f183
commit
5ca2475732
1 changed files with 5 additions and 7 deletions
|
@ -374,14 +374,12 @@ void Wallet::onHeightsRefreshed(bool success, quint64 daemonHeight, quint64 targ
|
||||||
if (success) {
|
if (success) {
|
||||||
quint64 walletHeight = blockChainHeight();
|
quint64 walletHeight = blockChainHeight();
|
||||||
|
|
||||||
if (this->connectionStatus() != Wallet::ConnectionStatus_Disconnected) {
|
|
||||||
if (daemonHeight < targetHeight) {
|
if (daemonHeight < targetHeight) {
|
||||||
emit blockchainSync(daemonHeight, targetHeight);
|
emit blockchainSync(daemonHeight, targetHeight);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this->syncStatusUpdated(walletHeight, daemonHeight);
|
this->syncStatusUpdated(walletHeight, daemonHeight);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (walletHeight < (daemonHeight - 1)) {
|
if (walletHeight < (daemonHeight - 1)) {
|
||||||
setConnectionStatus(ConnectionStatus_Synchronizing);
|
setConnectionStatus(ConnectionStatus_Synchronizing);
|
||||||
|
|
Loading…
Reference in a new issue