mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
callrpc: Check correct mainchainrpc field
This commit is contained in:
parent
0f9e9fd2c5
commit
add80bbdcd
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params, bool conn
|
||||||
|
|
||||||
// Get credentials
|
// Get credentials
|
||||||
std::string strRPCUserColonPass;
|
std::string strRPCUserColonPass;
|
||||||
if (GetArg("-rpcpassword", "") == "") {
|
if (GetArg(strpassword, "") == "") {
|
||||||
|
|
||||||
// Try fall back to cookie-based authentication if no password is provided
|
// Try fall back to cookie-based authentication if no password is provided
|
||||||
if (!connectToMainchain && !GetAuthCookie(&strRPCUserColonPass)) {
|
if (!connectToMainchain && !GetAuthCookie(&strRPCUserColonPass)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue