|
|
@ -260,7 +260,7 @@ std::string HelpMessage(HelpMessageMode mode) |
|
|
|
strUsage += " -port=<port> " + _("Listen for connections on <port> (default: 8333 or testnet: 18333)") + "\n"; |
|
|
|
strUsage += " -port=<port> " + _("Listen for connections on <port> (default: 8333 or testnet: 18333)") + "\n"; |
|
|
|
strUsage += " -proxy=<ip:port> " + _("Connect through SOCKS5 proxy") + "\n"; |
|
|
|
strUsage += " -proxy=<ip:port> " + _("Connect through SOCKS5 proxy") + "\n"; |
|
|
|
strUsage += " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n"; |
|
|
|
strUsage += " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n"; |
|
|
|
strUsage += " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n"; |
|
|
|
strUsage += " -timeout=<n> " + strprintf(_("Specify connection timeout in milliseconds (minimum: 1, default: %d)"), DEFAULT_CONNECT_TIMEOUT) + "\n"; |
|
|
|
#ifdef USE_UPNP |
|
|
|
#ifdef USE_UPNP |
|
|
|
#if USE_UPNP |
|
|
|
#if USE_UPNP |
|
|
|
strUsage += " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n"; |
|
|
|
strUsage += " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n"; |
|
|
@ -641,12 +641,9 @@ bool AppInit2(boost::thread_group& threadGroup) |
|
|
|
bool fDisableWallet = GetBoolArg("-disablewallet", false); |
|
|
|
bool fDisableWallet = GetBoolArg("-disablewallet", false); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (mapArgs.count("-timeout")) |
|
|
|
nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); |
|
|
|
{ |
|
|
|
if (nConnectTimeout <= 0) |
|
|
|
int nNewTimeout = GetArg("-timeout", 5000); |
|
|
|
nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; |
|
|
|
if (nNewTimeout > 0 && nNewTimeout < 600000) |
|
|
|
|
|
|
|
nConnectTimeout = nNewTimeout; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Continue to put "/P2SH/" in the coinbase to monitor
|
|
|
|
// Continue to put "/P2SH/" in the coinbase to monitor
|
|
|
|
// BIP16 support.
|
|
|
|
// BIP16 support.
|
|
|
|