From 77897a5958fc91714abd79704927c4243f26f010 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Sun, 3 Nov 2024 08:30:44 +0000 Subject: [PATCH] Avoid onion listen port collision Fixes https://github.com/namecoin/namecoin-core/issues/545 --- src/chainparamsbase.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chainparamsbase.cpp b/src/chainparamsbase.cpp index 49c68dd20e..99619e9aee 100644 --- a/src/chainparamsbase.cpp +++ b/src/chainparamsbase.cpp @@ -34,20 +34,20 @@ const CBaseChainParams& BaseParams() } /** - * Port numbers for incoming Tor connections (8334, 18334, 38334, 48334, 18445) have + * Port numbers for incoming Tor connections (8536, 18536, 38536, 48536, 18445) have * been chosen arbitrarily to keep ranges of used ports tight. */ std::unique_ptr CreateBaseChainParams(const ChainType chain) { switch (chain) { case ChainType::MAIN: - return std::make_unique("", 8336, 8334); + return std::make_unique("", 8336, 8536); case ChainType::TESTNET: - return std::make_unique("testnet3", 18336, 18334); + return std::make_unique("testnet3", 18336, 18536); case ChainType::TESTNET4: - return std::make_unique("testnet4", 48336, 48334); + return std::make_unique("testnet4", 48336, 48536); case ChainType::SIGNET: - return std::make_unique("signet", 38336, 38334); + return std::make_unique("signet", 38336, 38536); case ChainType::REGTEST: return std::make_unique("regtest", 18443, 18445); }