From 5dc309cef1724cd54370567abf9ee8ca42f2588d Mon Sep 17 00:00:00 2001 From: frstrtr Date: Fri, 10 Jul 2026 15:09:49 +0000 Subject: [PATCH] config: align testnet P2P port to 19326 The runtime P2P default is 9326 mainnet / 19326 testnet, but the testnet YAML still bound 19338 and the web_server.hpp struct initializer still seeded 9338 (runtime-overridden, cosmetic). Align both so testnet users binding from the YAML land on the correct P2P port. --- config/c2pool_testnet.yaml | 4 ++-- src/core/web_server.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/c2pool_testnet.yaml b/config/c2pool_testnet.yaml index a3273aedd..4c508ac77 100644 --- a/config/c2pool_testnet.yaml +++ b/config/c2pool_testnet.yaml @@ -1,11 +1,11 @@ # C2Pool Litecoin Testnet Configuration -# P2P: 19338, Stratum: 19327, HTTP: 8080 +# P2P: 19326, Stratum: 19327, HTTP: 8080 # # All keys below are optional. CLI arguments always take priority over YAML values. # Unrecognized keys are silently ignored. # ─── Network ──────────────────────────────────────────────────────────────── -port: 19338 # P2P p2pool sharechain port (testnet) +port: 19326 # P2P p2pool sharechain port (testnet) stratum_port: 19327 # Stratum mining port (testnet) http_port: 18080 # HTTP/JSON-RPC API port (testnet) http_host: "0.0.0.0" # HTTP bind address diff --git a/src/core/web_server.hpp b/src/core/web_server.hpp index 924ab3cb9..af9e5ad62 100644 --- a/src/core/web_server.hpp +++ b/src/core/web_server.hpp @@ -1383,7 +1383,7 @@ class MiningInterface : public jsonrpccxx::JsonRpc2Server, peer_info_fn_t m_peer_info_fn; // Port configuration - uint16_t m_p2p_port{9338}; + uint16_t m_p2p_port{9326}; uint16_t m_worker_port{9327}; std::string m_external_ip; std::string m_pool_version{"c2pool/0.1.0-alpha"};