From 93c87462c699f7d8b14804b42b91c95b8f03ee61 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 19 Jan 2024 10:28:39 -0500 Subject: [PATCH] fix CI tests by skipping daemon sync check for local testnet --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index 5b48c41a0e..a8852da544 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -3,6 +3,7 @@ package haveno.core.api; import haveno.common.ThreadUtils; import haveno.common.UserThread; import haveno.common.app.DevEnv; +import haveno.common.config.BaseCurrencyNetwork; import haveno.common.config.Config; import haveno.core.trade.HavenoUtils; import haveno.core.user.Preferences; @@ -611,7 +612,8 @@ public final class XmrConnectionService { chainHeight.set(lastInfo.getHeight()); // update sync progress - if (lastInfo.isSynchronized()) doneDownload(); + boolean isTestnet = Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL; + if (lastInfo.isSynchronized() || isTestnet) doneDownload(); // TODO: skipping synchronized check for testnet because CI tests do not sync 3rd local node, see "Can manage Monero daemon connections" else if (lastInfo.isBusySyncing()) { long targetHeight = lastInfo.getTargetHeight(); long blocksLeft = targetHeight - lastInfo.getHeight();