From dd5b7996b3224c6b2701ca352018276579a8a2cf Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 11 Nov 2024 07:22:56 -0500 Subject: [PATCH] fix price provider selection, remove local provider for production --- core/src/main/java/haveno/core/offer/Offer.java | 2 +- .../main/java/haveno/core/provider/ProvidersRepository.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/Offer.java b/core/src/main/java/haveno/core/offer/Offer.java index b3c81c5bcf..675fbeb550 100644 --- a/core/src/main/java/haveno/core/offer/Offer.java +++ b/core/src/main/java/haveno/core/offer/Offer.java @@ -200,7 +200,7 @@ public class Offer implements NetworkPayload, PersistablePayload { return null; } } else { - log.warn("We don't have a market price. " + + log.trace("We don't have a market price. " + "That case could only happen if you don't have a price feed."); return null; } diff --git a/core/src/main/java/haveno/core/provider/ProvidersRepository.java b/core/src/main/java/haveno/core/provider/ProvidersRepository.java index a31794a089..8357bb7f08 100644 --- a/core/src/main/java/haveno/core/provider/ProvidersRepository.java +++ b/core/src/main/java/haveno/core/provider/ProvidersRepository.java @@ -93,7 +93,7 @@ public class ProvidersRepository { fillProviderList(); // select next provider if current provider is null or banned - if (baseUrl == null || isBanned(baseUrl)) selectNextProviderBaseUrl(); + if (baseUrl.isEmpty() || isBanned(baseUrl)) selectNextProviderBaseUrl(); if (bannedNodes != null && !bannedNodes.isEmpty()) { log.info("Excluded provider nodes from filter: nodes={}, selected provider baseUrl={}, providerList={}", bannedNodes, baseUrl, providerList); @@ -140,7 +140,7 @@ public class ProvidersRepository { "http://173.230.142.36:8078/"); } else { providers = new ArrayList(); - providers.add(DEFAULT_LOCAL_NODE); // try local provider first + //providers.add(DEFAULT_LOCAL_NODE); // try local provider first providers.addAll(DEFAULT_NODES); } } else {