MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetAuthCookieFile

Function GetAuthCookieFile

src/rpc/request.cpp:72–79  ·  view source on GitHub ↗

Get name of RPC authentication cookie file */

Source from the content-addressed store, hash-verified

70
71/** Get name of RPC authentication cookie file */
72static fs::path GetAuthCookieFile(bool temp=false)
73{
74 std::string arg = gArgs.GetArg("-rpccookiefile", COOKIEAUTH_FILE);
75 if (temp) {
76 arg += ".tmp";
77 }
78 return AbsPathForConfigVal(fs::PathFromString(arg));
79}
80
81static bool g_generated_cookie = false;
82

Callers 3

GenerateAuthCookieFunction · 0.85
GetAuthCookieFunction · 0.85
DeleteAuthCookieFunction · 0.85

Calls 3

AbsPathForConfigValFunction · 0.85
PathFromStringFunction · 0.85
GetArgMethod · 0.80

Tested by

no test coverage detected