refactor(rpc): GenerateAuthCookieResult -> AuthCookieResult

Type will be used for reading the cookie in next commit.

Also corrects ERR/ERROR mismatch in docstring in request.h, and changes to CamelCase to avoid potential collision with Windows headers (https://github.com/bitcoin/bitcoin/pull/34965#issuecomment-4161331392).
This commit is contained in:
Hodlinator
2026-03-31 10:08:18 +02:00
parent c97ac44c34
commit 84c3f8d325
3 changed files with 19 additions and 19 deletions

View File

@@ -264,12 +264,12 @@ static bool InitRPCAuthentication()
}
switch (GenerateAuthCookie(cookie_perms, user, pass)) {
case GenerateAuthCookieResult::ERR:
case AuthCookieResult::Error:
return false;
case GenerateAuthCookieResult::DISABLED:
case AuthCookieResult::Disabled:
LogInfo("RPC authentication cookie file generation is disabled.");
break;
case GenerateAuthCookieResult::OK:
case AuthCookieResult::Ok:
LogInfo("Using random cookie authentication.");
break;
}