mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-16 15:58:08 +00:00
fix price provider selection, remove local provider for production
This commit is contained in:
parent
8c098632b7
commit
90110ac514
2 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ public class Offer implements NetworkPayload, PersistablePayload {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else {
|
} 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.");
|
"That case could only happen if you don't have a price feed.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ public class ProvidersRepository {
|
||||||
fillProviderList();
|
fillProviderList();
|
||||||
|
|
||||||
// select next provider if current provider is null or banned
|
// 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()) {
|
if (bannedNodes != null && !bannedNodes.isEmpty()) {
|
||||||
log.info("Excluded provider nodes from filter: nodes={}, selected provider baseUrl={}, providerList={}", bannedNodes, baseUrl, providerList);
|
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/");
|
"http://173.230.142.36:8078/");
|
||||||
} else {
|
} else {
|
||||||
providers = new ArrayList<String>();
|
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);
|
providers.addAll(DEFAULT_NODES);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue