File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -608,22 +608,11 @@ static unsigned int RandomIntegerRange(unsigned int nMin, unsigned int nMax)
608
608
609
609
static void WriteConfigFile (FILE* configFile)
610
610
{
611
- // Gets RPC Port
612
- std::stringstream streamRPCPort;
613
- streamRPCPort << " rpcport=" << BaseParams (CBaseChainParams::MAIN).RPCPort () << " \n " ;
614
- std::string rpcPort = streamRPCPort.str ();
615
- // Gets Default Protocol Port
616
- std::stringstream streamPort;
617
- streamPort << " port=" << DEFAULT_P2P_PORT << " \n " ;
618
- std::string port = streamPort.str ();
619
-
620
611
fputs (" #Do not use special characters with username/password\n " , configFile);
621
612
std::string sRPCpassword = " rpcpassword=" + GenerateRandomString (RandomIntegerRange (18 , 24 )) + " \n " ;
622
613
std::string sUserID = " rpcuser=" + GenerateRandomString (RandomIntegerRange (7 , 11 )) + " \n " ;
623
614
fputs (sUserID .c_str (), configFile);
624
615
fputs (sRPCpassword .c_str (), configFile);
625
- fputs (rpcPort.c_str (), configFile);
626
- fputs (port.c_str (), configFile);
627
616
fclose (configFile);
628
617
ReadConfigFile (GetArg (" -conf" , DYNAMIC_CONF_FILENAME));
629
618
}
You can’t perform that action at this time.
0 commit comments