mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 712cab3a8f into merged_master (Bitcoin PR bitcoin/bitcoin#31061)
This commit is contained in:
commit
c5cac8efa2
24 changed files with 125 additions and 471 deletions
|
|
@ -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", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue