mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Use server seed node and testnet
This commit is contained in:
parent
232a208a03
commit
8cfdf1907e
@ -30,7 +30,7 @@ import java.util.Properties;
|
||||
|
||||
public class BitcoinModule extends BitsquareModule {
|
||||
|
||||
private static final BitcoinNetwork DEFAULT_NETWORK = BitcoinNetwork.REGTEST;
|
||||
private static final BitcoinNetwork DEFAULT_NETWORK = BitcoinNetwork.TESTNET;
|
||||
|
||||
private final BitcoinNetwork network;
|
||||
|
||||
@ -57,18 +57,18 @@ public class BitcoinModule extends BitsquareModule {
|
||||
}
|
||||
|
||||
private NetworkParameters network() {
|
||||
String networkName = properties.getProperty("networkType", network.name());
|
||||
String networkName = properties.getProperty("networkType", network.name());
|
||||
|
||||
switch (BitcoinNetwork.valueOf(networkName.toUpperCase())) {
|
||||
case MAINNET:
|
||||
return MainNetParams.get();
|
||||
case TESTNET:
|
||||
return TestNet3Params.get();
|
||||
case REGTEST:
|
||||
return RegTestParams.get();
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown bitcoin network name: " + networkName);
|
||||
}
|
||||
switch (BitcoinNetwork.valueOf(networkName.toUpperCase())) {
|
||||
case MAINNET:
|
||||
return MainNetParams.get();
|
||||
case TESTNET:
|
||||
return TestNet3Params.get();
|
||||
case REGTEST:
|
||||
return RegTestParams.get();
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown bitcoin network name: " + networkName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ public abstract class MessageModule extends BitsquareModule {
|
||||
|
||||
bind(Node.class)
|
||||
.annotatedWith(Names.named("bootstrapNode"))
|
||||
.toInstance(BootstrapNodes.LOCALHOST);
|
||||
.toInstance(BootstrapNodes.DIGITAL_OCEAN_1);
|
||||
|
||||
doConfigure();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user