mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 11:39:29 +00:00
disable synchronizing on daemon for performance
This commit is contained in:
parent
13d6eaee7d
commit
b61f1fabcd
2 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ public final class XmrConnectionService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized boolean requestSwitchToNextBestConnection() {
|
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
|
// skip if shut down started
|
||||||
if (isShutDownStarted) {
|
if (isShutDownStarted) {
|
||||||
|
|
|
@ -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
|
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
|
// 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 boolean SYNC_WALLET_REQUESTS = false; // additionally sync wallet functions to daemon (e.g. create txs)
|
||||||
private static Object DAEMON_LOCK = new Object();
|
private static Object DAEMON_LOCK = new Object();
|
||||||
public static Object getDaemonLock() {
|
public static Object getDaemonLock() {
|
||||||
|
|
Loading…
Reference in a new issue