From b5d1e31191a5f6ca956fcbc16a9deac8e117b507 Mon Sep 17 00:00:00 2001 From: premek <1145361+premek@users.noreply.github.com> Date: Sun, 16 May 2021 02:42:46 +0200 Subject: [PATCH] fix NetworkParameters comparision after introducing Xmr*NetParams --- core/src/main/java/bisq/core/btc/setup/WalletsSetup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java b/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java index d01f900ce8..e217de1540 100644 --- a/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java +++ b/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java @@ -277,13 +277,13 @@ public class WalletsSetup { walletConfig.setNumConnectionsForBtc(numConnectionsForBtc); String checkpointsPath = null; - if (params.equals(MainNetParams.get())) { + if (params.getId().equals(NetworkParameters.ID_MAINNET)) { // Checkpoints are block headers that ship inside our app: for a new user, we pick the last header // in the checkpoints file and then download the rest from the network. It makes things much faster. // Checkpoint files are made using the BuildCheckpoints tool and usually we have to download the // last months worth or more (takes a few seconds). checkpointsPath = "/wallet/checkpoints.txt"; - } else if (params.equals(TestNet3Params.get())) { + } else if (params.getId().equals(NetworkParameters.ID_TESTNET)) { checkpointsPath = "/wallet/checkpoints.testnet.txt"; } if (checkpointsPath != null) { @@ -291,7 +291,7 @@ public class WalletsSetup { } - if (params == RegTestParams.get()) { + if (params.getId().equals(NetworkParameters.ID_REGTEST)) { walletConfig.setMinBroadcastConnections(1); if (regTestHost == RegTestHost.LOCALHOST) { walletConfig.connectToLocalHost();