mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Add Localhost, set regtest as default, remove relay as default
This commit is contained in:
parent
835937e0e7
commit
942284480f
5 changed files with 6 additions and 5 deletions
|
@ -39,7 +39,7 @@ public class SeedNode extends Thread {
|
|||
public static void main(String[] args) {
|
||||
Peer peer = null;
|
||||
SeedNodeAddress.StaticSeedNodeAddresses seedNodeAddress = SeedNodeAddress.StaticSeedNodeAddresses
|
||||
.DIGITAL_OCEAN1;
|
||||
.LOCALHOST;
|
||||
try {
|
||||
peer = new PeerBuilder(Number160.createHash(seedNodeAddress.getId())).ports(seedNodeAddress.getPort())
|
||||
.start();
|
||||
|
|
|
@ -32,7 +32,7 @@ public class BitcoinModule extends AbstractModule {
|
|||
private final BitcoinNetwork defaultNetwork;
|
||||
|
||||
public BitcoinModule(Properties properties) {
|
||||
this(properties, BitcoinNetwork.TESTNET);
|
||||
this(properties, BitcoinNetwork.REGTEST);
|
||||
}
|
||||
|
||||
public BitcoinModule(Properties properties, BitcoinNetwork defaultNetwork) {
|
||||
|
|
|
@ -152,7 +152,7 @@ public class BootstrappedPeerFactory {
|
|||
FutureDiscover futureDiscover;
|
||||
|
||||
// just temporary while port forwarding is not working
|
||||
//lastSuccessfulBootstrap = "relay";
|
||||
lastSuccessfulBootstrap = "default";
|
||||
|
||||
switch (lastSuccessfulBootstrap) {
|
||||
case "relay":
|
||||
|
|
|
@ -41,6 +41,6 @@ public class DefaultMessageModule extends AbstractBitsquareModule implements Mes
|
|||
|
||||
bind(SeedNodeAddress.StaticSeedNodeAddresses.class)
|
||||
.annotatedWith(Names.named("defaultSeedNode"))
|
||||
.toInstance(SeedNodeAddress.StaticSeedNodeAddresses.DIGITAL_OCEAN1);
|
||||
.toInstance(SeedNodeAddress.StaticSeedNodeAddresses.LOCALHOST);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,8 @@ public class SeedNodeAddress {
|
|||
public enum StaticSeedNodeAddresses {
|
||||
// Manfreds server: "188.226.179.109"
|
||||
// Steves server: "128.199.251.106"
|
||||
DIGITAL_OCEAN1("digitalocean1.bitsquare.io", "188.226.179.109", 5000);
|
||||
DIGITAL_OCEAN1("digitalocean1.bitsquare.io", "188.226.179.109", 5000),
|
||||
LOCALHOST("localhost", "127.0.0.1", 5000);
|
||||
// DIGITAL_OCEAN2("digitalocean2.bitsquare.io", "128.199.251.106", 5000);
|
||||
//LOCALHOST("localhost", "127.0.0.1", 5000);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue