From 2dcaa7311a281d484b18b2c68f5ea3397ff10a63 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 16 May 2024 21:38:09 +0000 Subject: [PATCH] Diff-minimise --- src/httprpc.cpp | 2 +- src/rpc/request.cpp | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 7d165ecd96..00725fed86 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -249,7 +249,7 @@ static bool InitRPCAuthentication() { if (gArgs.GetArg("-rpcpassword", "") == "") { - LogInfo("Using random cookie authentication.\n"); + LogPrintf("Using random cookie authentication.\n"); std::optional cookie_perms{DEFAULT_COOKIE_PERMS}; auto cookie_perms_arg{gArgs.GetArg("-rpccookieperms")}; diff --git a/src/rpc/request.cpp b/src/rpc/request.cpp index 46acdc100a..25e5660392 100644 --- a/src/rpc/request.cpp +++ b/src/rpc/request.cpp @@ -5,11 +5,12 @@ #include +#include + #include #include #include #include -#include #include #include @@ -90,6 +91,9 @@ bool GenerateAuthCookie(std::string* cookie_out, const std::pair