@@ -322,8 +322,8 @@ void SetupServerArgs()
322
322
const auto regtestChainParams = CreateChainParams (CBaseChainParams::REGTEST);
323
323
324
324
// Hidden Options
325
- std::vector<std::string> hidden_args = {" -rpcssl " , " -benchmark " , " - h" , " -help" , " -socks " , " -tor " , " -debugnet " , " -whitelistalwaysrelay " ,
326
- " -prematurewitness " , " -walletprematurewitness " , " -promiscuousmempoolflags " , " -blockminsize " , " - dbcrashratio" , " -forcecompactdb" , " -usehd" ,
325
+ std::vector<std::string> hidden_args = {" -h" , " -help" ,
326
+ " -dbcrashratio" , " -forcecompactdb" , " -usehd" ,
327
327
// GUI args. These will be overwritten by SetupUIArgs for the GUI
328
328
" -allowselfsignedrootcertificates" , " -choosedatadir" , " -lang=<lang>" , " -min" , " -resetguisettings" , " -rootcertificates=<file>" , " -splash" , " -uiplatform" };
329
329
@@ -961,25 +961,6 @@ bool AppInitParameterInteraction()
961
961
}
962
962
}
963
963
964
- // Check for -debugnet
965
- if (gArgs .GetBoolArg (" -debugnet" , false ))
966
- InitWarning (_ (" Unsupported argument -debugnet ignored, use -debug=net." ));
967
- // Check for -socks - as this is a privacy risk to continue, exit here
968
- if (gArgs .IsArgSet (" -socks" ))
969
- return InitError (_ (" Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported." ));
970
- // Check for -tor - as this is a privacy risk to continue, exit here
971
- if (gArgs .GetBoolArg (" -tor" , false ))
972
- return InitError (_ (" Unsupported argument -tor found, use -onion." ));
973
-
974
- if (gArgs .GetBoolArg (" -benchmark" , false ))
975
- InitWarning (_ (" Unsupported argument -benchmark ignored, use -debug=bench." ));
976
-
977
- if (gArgs .GetBoolArg (" -whitelistalwaysrelay" , false ))
978
- InitWarning (_ (" Unsupported argument -whitelistalwaysrelay ignored, use -whitelistrelay and/or -whitelistforcerelay." ));
979
-
980
- if (gArgs .IsArgSet (" -blockminsize" ))
981
- InitWarning (" Unsupported argument -blockminsize ignored." );
982
-
983
964
// Checkmempool and checkblockindex default to true in regtest mode
984
965
int ratio = std::min<int >(std::max<int >(gArgs .GetArg (" -checkmempool" , chainparams.DefaultConsistencyChecks () ? 1 : 0 ), 0 ), 1000000 );
985
966
if (ratio != 0 ) {
0 commit comments