File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -823,9 +823,14 @@ void InitParameterInteraction()
823823 }
824824
825825 if (GetBoolArg (" -masternode" , false )) {
826- // masternodes must accept connections from outside
827- if (SoftSetBoolArg (" -listen" , true ))
828- LogPrintf (" %s: parameter interaction: -masternode=1 -> setting -listen=1\n " , __func__);
826+ // masternodes MUST accept connections from outside
827+ ForceSetArg (" -listen" , " 1" );
828+ LogPrintf (" %s: parameter interaction: -masternode=1 -> setting -listen=1\n " , __func__);
829+ if (GetArg (" -maxconnections" , DEFAULT_MAX_PEER_CONNECTIONS) < DEFAULT_MAX_PEER_CONNECTIONS) {
830+ // masternodes MUST be able to handle at least DEFAULT_MAX_PEER_CONNECTIONS connections
831+ ForceSetArg (" -maxconnections" , itostr (DEFAULT_MAX_PEER_CONNECTIONS));
832+ LogPrintf (" %s: parameter interaction: -masternode=1 -> setting -maxconnections=%d\n " , __func__, DEFAULT_MAX_PEER_CONNECTIONS);
833+ }
829834 }
830835
831836 if (mapMultiArgs.count (" -connect" ) && mapMultiArgs.at (" -connect" ).size () > 0 ) {
You can’t perform that action at this time.
0 commit comments