Closes #5150.
This was mostly copied from #5285 by sulks, who has since quit GitHub.
The issue has remained open for 6 years, but the extra explanation still seems useful.
ACK b2bbc089888015e86ce3cbe145fd5a61695205ff
diff:
--- /tmp/1.log 2020-12-17 12:05:19.661809857 +0100
+++ /tmp/2.log 2020-12-17 12:04:46.502043685 +0100
@@ -1,4 +1,4 @@
-Bitcoin Core version v21.99.0-f0913f2f950c7a3e0a14d32216bd6ce4e19d85df
+Bitcoin Core version v21.99.0-6d74b0e0ac6e9bc63a893ca3cfe33362d445f595
Copyright (C) 2009-2020 The Bitcoin Core developers
Please contribute if you find Bitcoin Core useful. Visit
@@ -238,8 +238,9 @@
Relay non-P2SH multisig (default: 1)
-port=<port>
- Listen for connections on <port> (default: 8333, testnet: 18333 signet:
- 38333, regtest: 18444)
+ Listen for connections on <port>. Nodes not using the default ports
+ (default: 8333, testnet: 18333, signet: 38333, regtest: 18444)
+ are unlikely to get incoming connections.
-proxy=<ip:port>
Connect through SOCKS5 proxy, set -noproxy to disable (default:
re-ACK 010eed3ce03cf4fc622a48f40fc4d589383f7a44
449 | @@ -450,7 +450,7 @@ void SetupServerArgs(NodeContext& node) 450 | argsman.AddArg("-peerbloomfilters", strprintf("Support filtering of blocks and transaction with bloom filters (default: %u)", DEFAULT_PEERBLOOMFILTERS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); 451 | argsman.AddArg("-peerblockfilters", strprintf("Serve compact block filters to peers per BIP 157 (default: %u)", DEFAULT_PEERBLOCKFILTERS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); 452 | argsman.AddArg("-permitbaremultisig", strprintf("Relay non-P2SH multisig (default: %u)", DEFAULT_PERMIT_BAREMULTISIG), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); 453 | - argsman.AddArg("-port=<port>", strprintf("Listen for connections on <port> (default: %u, testnet: %u signet: %u, regtest: %u)", defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort(), signetChainParams->GetDefaultPort(), regtestChainParams->GetDefaultPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION); 454 | + argsman.AddArg("-port=<port>", strprintf("Listen for connections on <port>. Nodes not using the default ports (default: %u, testnet: %u, signet: %u, regtest: %u) will be unlikely to get incoming connections.", defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort(), signetChainParams->GetDefaultPort(), regtestChainParams->GetDefaultPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
thanks for fixing up the grammar while here
tried to make this part more easy/clear, not sure it's better ("not using"..."not see" symmetry)
argsman.AddArg("-port=<port>", strprintf("Listen for connections on <port>. Nodes not using the default ports (default: %u, testnet: %u, signet: %u, regtest: %u) will likely not see incoming connections.", defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort(), signetChainParams->GetDefaultPort(), regtestChainParams->GetDefaultPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
Nit: "are" instead of "will be"?
utACK b2bbc089888015e86ce3cbe145fd5a61695205ff
ACK b2bbc089888015e86ce3cbe145fd5a61695205ff
Nice find
Updated to go with @practicalswift's readability recommendation.
Thanks for the quick review and suggestions.