mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-19 12:24:19 -04: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) {
|
public static void main(String[] args) {
|
||||||
Peer peer = null;
|
Peer peer = null;
|
||||||
SeedNodeAddress.StaticSeedNodeAddresses seedNodeAddress = SeedNodeAddress.StaticSeedNodeAddresses
|
SeedNodeAddress.StaticSeedNodeAddresses seedNodeAddress = SeedNodeAddress.StaticSeedNodeAddresses
|
||||||
.DIGITAL_OCEAN1;
|
.LOCALHOST;
|
||||||
try {
|
try {
|
||||||
peer = new PeerBuilder(Number160.createHash(seedNodeAddress.getId())).ports(seedNodeAddress.getPort())
|
peer = new PeerBuilder(Number160.createHash(seedNodeAddress.getId())).ports(seedNodeAddress.getPort())
|
||||||
.start();
|
.start();
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class BitcoinModule extends AbstractModule {
|
||||||
private final BitcoinNetwork defaultNetwork;
|
private final BitcoinNetwork defaultNetwork;
|
||||||
|
|
||||||
public BitcoinModule(Properties properties) {
|
public BitcoinModule(Properties properties) {
|
||||||
this(properties, BitcoinNetwork.TESTNET);
|
this(properties, BitcoinNetwork.REGTEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BitcoinModule(Properties properties, BitcoinNetwork defaultNetwork) {
|
public BitcoinModule(Properties properties, BitcoinNetwork defaultNetwork) {
|
||||||
|
|
|
@ -152,7 +152,7 @@ public class BootstrappedPeerFactory {
|
||||||
FutureDiscover futureDiscover;
|
FutureDiscover futureDiscover;
|
||||||
|
|
||||||
// just temporary while port forwarding is not working
|
// just temporary while port forwarding is not working
|
||||||
//lastSuccessfulBootstrap = "relay";
|
lastSuccessfulBootstrap = "default";
|
||||||
|
|
||||||
switch (lastSuccessfulBootstrap) {
|
switch (lastSuccessfulBootstrap) {
|
||||||
case "relay":
|
case "relay":
|
||||||
|
|
|
@ -41,6 +41,6 @@ public class DefaultMessageModule extends AbstractBitsquareModule implements Mes
|
||||||
|
|
||||||
bind(SeedNodeAddress.StaticSeedNodeAddresses.class)
|
bind(SeedNodeAddress.StaticSeedNodeAddresses.class)
|
||||||
.annotatedWith(Names.named("defaultSeedNode"))
|
.annotatedWith(Names.named("defaultSeedNode"))
|
||||||
.toInstance(SeedNodeAddress.StaticSeedNodeAddresses.DIGITAL_OCEAN1);
|
.toInstance(SeedNodeAddress.StaticSeedNodeAddresses.LOCALHOST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ public class SeedNodeAddress {
|
||||||
public enum StaticSeedNodeAddresses {
|
public enum StaticSeedNodeAddresses {
|
||||||
// Manfreds server: "188.226.179.109"
|
// Manfreds server: "188.226.179.109"
|
||||||
// Steves server: "128.199.251.106"
|
// 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);
|
// DIGITAL_OCEAN2("digitalocean2.bitsquare.io", "128.199.251.106", 5000);
|
||||||
//LOCALHOST("localhost", "127.0.0.1", 5000);
|
//LOCALHOST("localhost", "127.0.0.1", 5000);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue