mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01: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 {
|
||||
private static final Logger log = LoggerFactory.getLogger(SeedNodesRepository.class);
|
||||
|
||||
// mainnet use port 8000
|
||||
// testnet use port 8001
|
||||
// regtest use port 8002
|
||||
// Addresses are used if their port match the network id:
|
||||
// - mainnet uses port 8000
|
||||
// - testnet uses port 8001
|
||||
// - regtest uses port 8002
|
||||
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)
|
||||
|
||||
|
@ -51,6 +52,10 @@ public class SeedNodesRepository {
|
|||
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(
|
||||
// mainnet
|
||||
new NodeAddress("localhost:2000"),
|
||||
|
|
Loading…
Add table
Reference in a new issue