MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetAuthCookieFile

Function GetAuthCookieFile

src/rpc/protocol.cpp:69–76  ·  view source on GitHub ↗

Get name of RPC authentication cookie file */

Source from the content-addressed store, hash-verified

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

Callers 3

GenerateAuthCookieFunction · 0.85
GetAuthCookieFunction · 0.85
DeleteAuthCookieFunction · 0.85

Calls 2

AbsPathForConfigValFunction · 0.85
GetArgMethod · 0.45

Tested by

no test coverage detected