MCPcopy Create free account
hub / github.com/LUX-Core/lux / InitRPCAuthentication

Function InitRPCAuthentication

src/httprpc.cpp:165–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static bool InitRPCAuthentication()
166{
167 if (mapArgs["-rpcpassword"] == "")
168 {
169 LogPrintf("No rpcpassword set - using random cookie authentication\n");
170 if (!GenerateAuthCookie(&strRPCUserColonPass)) {
171 uiInterface.ThreadSafeMessageBox(
172 _("Error: A fatal internal error occurred, see debug.log for details"), // Same message as AbortNode
173 "", CClientUIInterface::MSG_ERROR);
174 return false;
175 }
176 } else {
177 strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"];
178 }
179 return true;
180}
181
182bool StartHTTPRPC()
183{

Callers 1

StartHTTPRPCFunction · 0.85

Calls 2

GenerateAuthCookieFunction · 0.85
_Function · 0.85

Tested by

no test coverage detected