diff --git a/core/src/main/java/io/bisq/core/provider/ProvidersRepository.java b/core/src/main/java/io/bisq/core/provider/ProvidersRepository.java index 1c98a3b223..f5c1589365 100644 --- a/core/src/main/java/io/bisq/core/provider/ProvidersRepository.java +++ b/core/src/main/java/io/bisq/core/provider/ProvidersRepository.java @@ -35,8 +35,6 @@ import java.util.stream.Collectors; public class ProvidersRepository { private static final String NODES = "http://xc3nh4juf2hshy7e.onion/, " + // @emzy "http://ceaanhbvluug4we6.onion/"; // @mrosseel - // old nodes - // private static final String NODES = "http://44mgyoe2b6oqiytt.onion/, http://5bmpx76qllutpcyp.onion/"; private final String providersFromProgramArgs; private final boolean useLocalhostForP2P; @@ -67,8 +65,7 @@ public class ProvidersRepository { // If we run in localhost mode we don't have the tor node running, so we need a clearnet host // Use localhost for using a locally running provider // providerAsString = "http://localhost:8080/"; - // providerAsString = "http://localhost:8080/, http://37.139.14.34:8080/"; - providerAsString = "http://174.138.104.137:8080/"; + providerAsString = "http://174.138.104.137:8080/"; // @mrosseel } else { providerAsString = NODES; } diff --git a/gui/src/main/java/io/bisq/gui/main/funds/withdrawal/WithdrawalView.java b/gui/src/main/java/io/bisq/gui/main/funds/withdrawal/WithdrawalView.java index 195429b96a..1460f4ed54 100644 --- a/gui/src/main/java/io/bisq/gui/main/funds/withdrawal/WithdrawalView.java +++ b/gui/src/main/java/io/bisq/gui/main/funds/withdrawal/WithdrawalView.java @@ -238,7 +238,7 @@ public class WithdrawalView extends ActivatableView { feeEstimationTransaction = walletService.getFeeEstimationTransactionForMultipleAddresses(fromAddresses, withdrawToTextField.getText(), amountOfSelectedItems); } catch (InsufficientFundsException e) { - new Popup<>().warning(e.getMessage()).show(); + new Popup<>().warning(e.toString()).show(); } catch (Throwable t) { new Popup<>().error(Res.get("popup.error.createTx", t.toString())).show(); } @@ -276,7 +276,7 @@ public class WithdrawalView extends ActivatableView { } catch (Throwable e) { e.printStackTrace(); log.error(e.toString()); - new Popup<>().warning(e.getMessage()).show(); + new Popup<>().warning(e.toString()).show(); } } } @@ -367,8 +367,8 @@ public class WithdrawalView extends ActivatableView { log.warn(e.getMessage()); new Popup<>().warning(Res.get("funds.withdrawal.notEnoughFunds")).show(); } catch (Throwable e) { - log.warn(e.getMessage()); - new Popup<>().warning(e.getMessage()).show(); + log.warn(e.toString()); + new Popup<>().warning(e.toString()).show(); } } diff --git a/gui/src/main/java/io/bisq/gui/util/validation/FiatPriceValidator.java b/gui/src/main/java/io/bisq/gui/util/validation/FiatPriceValidator.java index 7c730e3abc..e313be5a93 100644 --- a/gui/src/main/java/io/bisq/gui/util/validation/FiatPriceValidator.java +++ b/gui/src/main/java/io/bisq/gui/util/validation/FiatPriceValidator.java @@ -27,8 +27,9 @@ public class FiatPriceValidator extends MonetaryValidator { @Override protected double getMaxValue() { - // hard to say what the max value should be (zimbabwe dollar....)? - return 100_000_000; + // Hard to say what the max value should be (zimbabwe dollar....)? + // Lets set it to Double.MAX_VALUE until we find some reasonable number + return Double.MAX_VALUE; } @Inject diff --git a/gui/src/main/java/io/bisq/gui/util/validation/FiatVolumeValidator.java b/gui/src/main/java/io/bisq/gui/util/validation/FiatVolumeValidator.java index 0aecf37cb0..9624c81e1d 100644 --- a/gui/src/main/java/io/bisq/gui/util/validation/FiatVolumeValidator.java +++ b/gui/src/main/java/io/bisq/gui/util/validation/FiatVolumeValidator.java @@ -27,8 +27,9 @@ public class FiatVolumeValidator extends MonetaryValidator { @Override protected double getMaxValue() { - // hard to say what the max value should be (zimbabwe dollar....)? - return 100_000_000; + // Hard to say what the max value should be (zimbabwe dollar....)? + // Lets set it to Double.MAX_VALUE until we find some reasonable number + return Double.MAX_VALUE; } @Inject diff --git a/network/src/main/java/io/bisq/network/p2p/network/Server.java b/network/src/main/java/io/bisq/network/p2p/network/Server.java index d229257337..64aa382390 100644 --- a/network/src/main/java/io/bisq/network/p2p/network/Server.java +++ b/network/src/main/java/io/bisq/network/p2p/network/Server.java @@ -90,8 +90,7 @@ class Server implements Runnable { } catch (SocketException e) { log.debug("SocketException at shutdown might be expected " + e.getMessage()); } catch (IOException e) { - log.error("Exception at shutdown. " + e.getMessage()); - e.printStackTrace(); + log.debug("Exception at shutdown. " + e.getMessage()); } finally { log.debug("Server shutdown complete"); } diff --git a/network/src/main/java/io/bisq/network/p2p/peers/getdata/RequestDataHandler.java b/network/src/main/java/io/bisq/network/p2p/peers/getdata/RequestDataHandler.java index 64727336fc..279ee50d55 100644 --- a/network/src/main/java/io/bisq/network/p2p/peers/getdata/RequestDataHandler.java +++ b/network/src/main/java/io/bisq/network/p2p/peers/getdata/RequestDataHandler.java @@ -203,10 +203,11 @@ class RequestDataHandler implements MessageListener { // Log different data types StringBuilder sb = new StringBuilder(); - sb.append("\n#################################################################"); + sb.append("\n#################################################################\n"); + sb.append("Connected to node: "+peersNodeAddress.getFullAddress()+"\n"); final int items = dataSet.size() + (persistableNetworkPayloadSet != null ? persistableNetworkPayloadSet.size() : 0); - sb.append("\nReceived ").append(items).append(" instances\n"); + sb.append("Received ").append(items).append(" instances\n"); payloadByClassName.entrySet().stream().forEach(e -> sb.append(e.getKey()) .append(": ") .append(e.getValue().size())