You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
args: Support -norpccookiefile for bitcoind and bitcoin-cli
Replaces belt & suspenders check for initialization in RPCAuthorized() with not allowing empty passwords further down.
Github-Pull: bitcoin#31212
Rebased-From: 39cbd4f
assert(strRPCUserColonPass.empty()); // Only support initializing once
310
308
if (!GenerateAuthCookie(&strRPCUserColonPass, cookie_perms)) {
311
309
returnfalse;
312
310
}
311
+
if (strRPCUserColonPass.empty()) {
312
+
LogInfo("RPC authentication cookie file generation is disabled.");
313
+
} else {
314
+
LogInfo("Using random cookie authentication.");
315
+
}
313
316
} else {
314
317
LogPrintf("Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.\n");
0 commit comments