From b61f1fabcdce69bee6cc2c818dfc8235da98392e Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 20 Jul 2024 14:30:55 -0400 Subject: [PATCH] disable synchronizing on daemon for performance --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 2 +- core/src/main/java/haveno/core/trade/HavenoUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index caddf2999e..6f9b4bb376 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -273,7 +273,7 @@ public final class XmrConnectionService { } public synchronized boolean requestSwitchToNextBestConnection() { - log.warn("Request made to switch to next best monerod, current monerod={}", getConnection() == null ? null : getConnection().getUri()); + log.warn("Requesting switch to next best monerod, current monerod={}", getConnection() == null ? null : getConnection().getUri()); // skip if shut down started if (isShutDownStarted) { diff --git a/core/src/main/java/haveno/core/trade/HavenoUtils.java b/core/src/main/java/haveno/core/trade/HavenoUtils.java index ff8de23068..bcb0d9f40e 100644 --- a/core/src/main/java/haveno/core/trade/HavenoUtils.java +++ b/core/src/main/java/haveno/core/trade/HavenoUtils.java @@ -82,7 +82,7 @@ public class HavenoUtils { public static final long LOG_POLL_ERROR_PERIOD_MS = 1000 * 60 * 4; // log poll errors up to once every 4 minutes // synchronize requests to the daemon - private static boolean SYNC_DAEMON_REQUESTS = true; // sync long requests to daemon (e.g. refresh, update pool) + private static boolean SYNC_DAEMON_REQUESTS = false; // sync long requests to daemon (e.g. refresh, update pool) // TODO: performance suffers by syncing daemon requests, but otherwise we sometimes get sporadic errors? private static boolean SYNC_WALLET_REQUESTS = false; // additionally sync wallet functions to daemon (e.g. create txs) private static Object DAEMON_LOCK = new Object(); public static Object getDaemonLock() {