Skip to content

Commit

Permalink
Use btcNodes argument in regtest mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Labno committed Mar 2, 2018
1 parent a30f9f0 commit 961b014
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected void onSetupCompleted() {
};

if (params == RegTestParams.get()) {
configPeerNodesForRegTest();
configPeerNodesForRegTest(socks5Proxy);
} else if (bisqEnvironment.isBitcoinLocalhostNodeRunning()) {
configPeerNodesForLocalHostBitcoinNode();
} else {
Expand Down Expand Up @@ -268,7 +268,7 @@ private int evaluateMode(String socks5DiscoverModeString) {
return mode;
}

private void configPeerNodesForRegTest() {
private void configPeerNodesForRegTest(@Nullable Socks5Proxy proxy) {
walletConfig.setMinBroadcastConnections(1);
if (regTestHost == RegTestHost.REG_TEST_SERVER) {
try {
Expand All @@ -280,6 +280,8 @@ private void configPeerNodesForRegTest() {
}
} else if (regTestHost == RegTestHost.LOCALHOST) {
walletConfig.setPeerNodesForLocalHost();
} else {
configPeerNodes(proxy);
}
}

Expand Down

0 comments on commit 961b014

Please sign in to comment.