We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613079f commit 587f690Copy full SHA for 587f690
src/rpc/protocol.cpp
@@ -131,7 +131,12 @@ static const std::string MAINCHAIN_COOKIEAUTH_FILE = "regtest/.cookie";
131
/** Get name mainchain RPC authentication cookie file */
132
static fs::path GetMainchainAuthCookieFile()
133
{
134
- boost::filesystem::path path(gArgs.GetArg("-mainchainrpccookiefile", MAINCHAIN_COOKIEAUTH_FILE));
+ std::string cookie_file = MAINCHAIN_COOKIEAUTH_FILE;
135
+ // Bitcoin mainnet exception
136
+ if (gArgs.GetChainName() == "liquidv1") {
137
+ cookie_file = ".cookie";
138
+ }
139
+ boost::filesystem::path path(gArgs.GetArg("-mainchainrpccookiefile", cookie_file));
140
if (!path.is_complete()) path = GetDataDir(false) / path;
141
return path;
142
}
0 commit comments