diff options
| author | Zain Iqbal Allarakhia <[email protected]> | 2018-11-29 13:05:41 -0800 |
|---|---|---|
| committer | Zain Iqbal Allarakhia <[email protected]> | 2018-11-29 13:05:41 -0800 |
| commit | 48b37db50f4a5dc6d2dd1a01183bdb993ca97f8b (patch) | |
| tree | 66cd74e9e7a409ba2ed26b321d90d211775233b2 /src/init.cpp | |
| parent | p2p: allow p2ptimeout to be configurable, speed up slow test (diff) | |
| download | discoin-48b37db50f4a5dc6d2dd1a01183bdb993ca97f8b.tar.xz discoin-48b37db50f4a5dc6d2dd1a01183bdb993ca97f8b.zip | |
make peertimeout a debug argument, remove error message translation
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2df47fb78..72ca0f5d0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -403,7 +403,7 @@ void SetupServerArgs() gArgs.AddArg("-proxyrandomize", strprintf("Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)", DEFAULT_PROXYRANDOMIZE), false, OptionsCategory::CONNECTION); gArgs.AddArg("-seednode=<ip>", "Connect to a node to retrieve peer addresses, and disconnect. This option can be specified multiple times to connect to multiple nodes.", false, OptionsCategory::CONNECTION); gArgs.AddArg("-timeout=<n>", strprintf("Specify connection timeout in milliseconds (minimum: 1, default: %d)", DEFAULT_CONNECT_TIMEOUT), false, OptionsCategory::CONNECTION); - gArgs.AddArg("-peertimeout=<n>", strprintf("Specify p2p connection timeout in seconds. This option determines the amount of time a peer may be inactive before the connection to it is dropped. (minimum: 1, default: %d)", DEFAULT_PEER_CONNECT_TIMEOUT), false, OptionsCategory::CONNECTION); + gArgs.AddArg("-peertimeout=<n>", strprintf("Specify p2p connection timeout in seconds. This option determines the amount of time a peer may be inactive before the connection to it is dropped. (minimum: 1, default: %d)", DEFAULT_PEER_CONNECT_TIMEOUT), true, OptionsCategory::CONNECTION); gArgs.AddArg("-torcontrol=<ip>:<port>", strprintf("Tor control port to use if onion listening enabled (default: %s)", DEFAULT_TOR_CONTROL), false, OptionsCategory::CONNECTION); gArgs.AddArg("-torpassword=<pass>", "Tor control port password (default: empty)", false, OptionsCategory::CONNECTION); #ifdef USE_UPNP @@ -1054,7 +1054,7 @@ bool AppInitParameterInteraction() peer_connect_timeout = gArgs.GetArg("-peertimeout", DEFAULT_PEER_CONNECT_TIMEOUT); if (peer_connect_timeout <= 0) { - return InitError(_("peertimeout cannot be configured with a negative value.")); + return InitError("peertimeout cannot be configured with a negative value."); } if (gArgs.IsArgSet("-minrelaytxfee")) { |