From 6b97cbfd2e20e0761719960eee16bc9e84cb34dd Mon Sep 17 00:00:00 2001 From: frstrtr Date: Fri, 19 Jun 2026 20:51:54 +0000 Subject: [PATCH] nmc: register NMC P2P port (8334/18334) in host get_coin_p2p_port (P1 PE 2b-i) RPC-first leg of NMC cid=1 merged-mining registration. The --merged NMC:1:host:port:user:pass spec already rides the chain_id-generic add_chain + submitblock RPC-fallback path; this adds the only host hunk that leg needs: the NMC well-known P2P port so auto-port wiring resolves. Port sourced from src/impl/nmc/coin/chain_seeds.hpp SSOT (harvested live from a namecoind addrman), not retyped from memory. The get_chain_p2p_prefix NMC magic case is intentionally deferred: the network pchMessageStart is not yet pinned in the nmc SSOT, so the fast P2P relay leg lands with the embedded backend in 2b-ii. DOGE(98)/LTC untouched and byte-isolated. --- src/c2pool/c2pool_refactored.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c2pool/c2pool_refactored.cpp b/src/c2pool/c2pool_refactored.cpp index d3be97281..18ed14f8b 100644 --- a/src/c2pool/c2pool_refactored.cpp +++ b/src/c2pool/c2pool_refactored.cpp @@ -677,6 +677,7 @@ int main(int argc, char* argv[]) { auto get_coin_p2p_port = [](const std::string& symbol, bool testnet) -> int { if (symbol == "LTC" || symbol == "ltc") return testnet ? 19335 : 9333; if (symbol == "DOGE" || symbol == "doge") return testnet ? 44556 : 22556; + if (symbol == "NMC" || symbol == "nmc") return testnet ? 18334 : 8334; // SSOT: src/impl/nmc/coin/chain_seeds.hpp (namecoind addrman) if (symbol == "BTC" || symbol == "btc") return testnet ? 18333 : 8333; if (symbol == "DGB" || symbol == "dgb") return testnet ? 12026 : 12024; if (symbol == "PEP" || symbol == "pep") return testnet ? 44874 : 33874;