Merge 712cab3a8f into merged_master (Bitcoin PR bitcoin/bitcoin#31061)

This commit is contained in:
Tom Trevethan 2026-04-10 00:12:04 +01:00
commit c5cac8efa2
24 changed files with 125 additions and 471 deletions

View file

@ -103,8 +103,8 @@ UniValue CallMainChainRPC(const std::string& strMethod, const UniValue& params)
// Try fall back to cookie-based authentication if no password is provided
if (!GetMainchainAuthCookie(&strRPCUserColonPass)) {
throw std::runtime_error(strprintf(
_("Could not locate mainchain RPC credentials. No authentication cookie could be found, and no mainchainrpcpassword is set in the configuration file (%s)").translated,
gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME).c_str()));
_("Could not locate mainchain RPC credentials. No authentication cookie could be found, and no mainchainrpcpassword is set in the configuration file (%s)"),
gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME).c_str()).translated);
}
} else {
strRPCUserColonPass = gArgs.GetArg("-mainchainrpcuser", "") + ":" + gArgs.GetArg("-mainchainrpcpassword", "");