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

Function GetAuthCookieFile

src/rpc/request.cpp:86–96  ·  view source on GitHub ↗

Get name of RPC authentication cookie file */

Source from the content-addressed store, hash-verified

84
85/** Get name of RPC authentication cookie file */
86static fs::path GetAuthCookieFile(bool temp=false)
87{
88 fs::path arg = gArgs.GetPathArg("-rpccookiefile", COOKIEAUTH_FILE);
89 if (arg.empty()) {
90 return {}; // -norpccookiefile was specified
91 }
92 if (temp) {
93 arg += ".tmp";
94 }
95 return AbsPathForConfigVal(gArgs, arg);
96}
97
98static bool g_generated_cookie = false;
99

Callers 3

GenerateAuthCookieFunction · 0.85
GetAuthCookieFunction · 0.85
DeleteAuthCookieFunction · 0.85

Calls 3

AbsPathForConfigValFunction · 0.85
GetPathArgMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected