diff --git a/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java b/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java index 9e3967b470..6c74ec5656 100644 --- a/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java +++ b/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java @@ -558,7 +558,7 @@ public final class CoreMoneroConnectionsService { log.debug("Polling daemon info"); if (daemon == null) throw new RuntimeException("No daemon connection"); lastInfo = daemon.getInfo(); - chainHeight.set(lastInfo.getTargetHeight() == 0 ? lastInfo.getHeight() : lastInfo.getTargetHeight()); + chainHeight.set(lastInfo.getHeight()); // set peer connections // TODO: peers often uknown due to restricted RPC call, skipping call to get peer connections diff --git a/core/src/main/java/haveno/core/app/WalletAppSetup.java b/core/src/main/java/haveno/core/app/WalletAppSetup.java index 32cb62387b..77c076782d 100644 --- a/core/src/main/java/haveno/core/app/WalletAppSetup.java +++ b/core/src/main/java/haveno/core/app/WalletAppSetup.java @@ -39,7 +39,6 @@ import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import lombok.Getter; import lombok.extern.slf4j.Slf4j; -import monero.daemon.model.MoneroDaemonInfo; import org.bitcoinj.core.RejectMessage; import org.bitcoinj.core.VersionMessage; @@ -115,8 +114,7 @@ public class WalletAppSetup { if (exception == null && errorMsg == null) { double percentage = (double) downloadPercentage; xmrSyncProgress.set(percentage); - MoneroDaemonInfo lastInfo = connectionService.getLastInfo(); - Long bestChainHeight = lastInfo == null ? null : lastInfo.getHeight(); + Long bestChainHeight = chainHeight == null ? null : (Long) chainHeight; String chainHeightAsString = bestChainHeight != null && bestChainHeight > 0 ? String.valueOf(bestChainHeight) : "";