mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 10:49:19 -04:00
Clarify matching of seed node ports and network ids
This commit is contained in:
parent
e6197938fe
commit
ad579bf7cc
1 changed files with 8 additions and 3 deletions
|
@ -11,9 +11,10 @@ import java.util.stream.Collectors;
|
||||||
public class SeedNodesRepository {
|
public class SeedNodesRepository {
|
||||||
private static final Logger log = LoggerFactory.getLogger(SeedNodesRepository.class);
|
private static final Logger log = LoggerFactory.getLogger(SeedNodesRepository.class);
|
||||||
|
|
||||||
// mainnet use port 8000
|
// Addresses are used if their port match the network id:
|
||||||
// testnet use port 8001
|
// - mainnet uses port 8000
|
||||||
// regtest use port 8002
|
// - testnet uses port 8001
|
||||||
|
// - regtest uses port 8002
|
||||||
private Set<NodeAddress> torSeedNodeAddresses = Sets.newHashSet(
|
private Set<NodeAddress> torSeedNodeAddresses = Sets.newHashSet(
|
||||||
// In alpha we change the network with new releases. That will be faded out once we become backwards compatible (Beta)
|
// In alpha we change the network with new releases. That will be faded out once we become backwards compatible (Beta)
|
||||||
|
|
||||||
|
@ -51,6 +52,10 @@ public class SeedNodesRepository {
|
||||||
new NodeAddress("mfla72c4igh5ta2t.onion:8002")
|
new NodeAddress("mfla72c4igh5ta2t.onion:8002")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Addresses are used if the last digit of their port match the network id:
|
||||||
|
// - mainnet use port ends in 0
|
||||||
|
// - testnet use port ends in 1
|
||||||
|
// - regtest use port ends in 2
|
||||||
private Set<NodeAddress> localhostSeedNodeAddresses = Sets.newHashSet(
|
private Set<NodeAddress> localhostSeedNodeAddresses = Sets.newHashSet(
|
||||||
// mainnet
|
// mainnet
|
||||||
new NodeAddress("localhost:2000"),
|
new NodeAddress("localhost:2000"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue