mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Use btcNodes argument in regtest mode.
This commit is contained in:
parent
a30f9f0a52
commit
961b01403f
@ -196,7 +196,7 @@ public class WalletsSetup {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (params == RegTestParams.get()) {
|
if (params == RegTestParams.get()) {
|
||||||
configPeerNodesForRegTest();
|
configPeerNodesForRegTest(socks5Proxy);
|
||||||
} else if (bisqEnvironment.isBitcoinLocalhostNodeRunning()) {
|
} else if (bisqEnvironment.isBitcoinLocalhostNodeRunning()) {
|
||||||
configPeerNodesForLocalHostBitcoinNode();
|
configPeerNodesForLocalHostBitcoinNode();
|
||||||
} else {
|
} else {
|
||||||
@ -268,7 +268,7 @@ public class WalletsSetup {
|
|||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void configPeerNodesForRegTest() {
|
private void configPeerNodesForRegTest(@Nullable Socks5Proxy proxy) {
|
||||||
walletConfig.setMinBroadcastConnections(1);
|
walletConfig.setMinBroadcastConnections(1);
|
||||||
if (regTestHost == RegTestHost.REG_TEST_SERVER) {
|
if (regTestHost == RegTestHost.REG_TEST_SERVER) {
|
||||||
try {
|
try {
|
||||||
@ -280,6 +280,8 @@ public class WalletsSetup {
|
|||||||
}
|
}
|
||||||
} else if (regTestHost == RegTestHost.LOCALHOST) {
|
} else if (regTestHost == RegTestHost.LOCALHOST) {
|
||||||
walletConfig.setPeerNodesForLocalHost();
|
walletConfig.setPeerNodesForLocalHost();
|
||||||
|
} else {
|
||||||
|
configPeerNodes(proxy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user