Skip to content

Commit

Permalink
fix price provider selection, remove local provider for production
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser authored and nahuhh committed Nov 12, 2024
1 parent cf01a7f commit 39d5ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/haveno/core/offer/Offer.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public Price getPrice() {
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void applyBannedNodes(@Nullable List<String> bannedNodes) {
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);
Expand Down Expand Up @@ -140,7 +140,7 @@ private void fillProviderList() {
"http://173.230.142.36:8078/");
} else {
providers = new ArrayList<String>();
providers.add(DEFAULT_LOCAL_NODE); // try local provider first
//providers.add(DEFAULT_LOCAL_NODE); // try local provider first
providers.addAll(DEFAULT_NODES);
}
} else {
Expand Down

0 comments on commit 39d5ed6

Please sign in to comment.