Use server seed node and testnet

This commit is contained in:
Manfred Karrer 2014-11-07 18:28:43 +01:00
parent 232a208a03
commit 8cfdf1907e
2 changed files with 13 additions and 13 deletions

View File

@ -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);
}
}
}

View File

@ -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();
}