mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Clarify default max peer connections (#3081)
* clarify comment regarding default peer connections and how that applies to MNs Signed-off-by: Pasta <pasta@dashboost.org> * clarify debug log when maxconnections is force set Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
b874fcc8c5
commit
0b2221ed6b
@ -913,7 +913,8 @@ void InitParameterInteraction()
|
||||
if (gArgs.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS) < DEFAULT_MAX_PEER_CONNECTIONS) {
|
||||
// masternodes MUST be able to handle at least DEFAULT_MAX_PEER_CONNECTIONS connections
|
||||
gArgs.ForceSetArg("-maxconnections", itostr(DEFAULT_MAX_PEER_CONNECTIONS));
|
||||
LogPrintf("%s: parameter interaction: -masternode=1 -> setting -maxconnections=%d\n", __func__, DEFAULT_MAX_PEER_CONNECTIONS);
|
||||
LogPrintf("%s: parameter interaction: -masternode=1 -> setting -maxconnections=%d instead of specified -maxconnections=%d\n",
|
||||
__func__, DEFAULT_MAX_PEER_CONNECTIONS, gArgs.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,9 @@ static const bool DEFAULT_UPNP = false;
|
||||
static const size_t MAPASKFOR_MAX_SZ = MAX_INV_SZ;
|
||||
/** The maximum number of entries in setAskFor (larger due to getdata latency)*/
|
||||
static const size_t SETASKFOR_MAX_SZ = 2 * MAX_INV_SZ;
|
||||
/** The maximum number of peer connections to maintain. */
|
||||
/** The maximum number of peer connections to maintain.
|
||||
* Masternodes are forced to accept at least this many connections
|
||||
*/
|
||||
static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125;
|
||||
/** The default for -maxuploadtarget. 0 = Unlimited */
|
||||
static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user