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

Function GetAuthCookieFile

src/rpcprotocol.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71static const std::string COOKIEAUTH_FILE = ".cookie";
72
73boost::filesystem::path GetAuthCookieFile()
74{
75 boost::filesystem::path path(GetArg("-rpccookiefile", COOKIEAUTH_FILE));
76 if (!path.is_complete()) path = GetDataDir() / path;
77 return path;
78}
79
80bool GenerateAuthCookie(std::string *cookie_out)
81{

Callers 3

GenerateAuthCookieFunction · 0.85
GetAuthCookieFunction · 0.85
DeleteAuthCookieFunction · 0.85

Calls 1

GetArgFunction · 0.85

Tested by

no test coverage detected