util, refactor: Use GetPathArg to read "-conf" value

Also "includeconf" values been normalized.
This commit is contained in:
Hennadii Stepanov committed 2022-04-21 12:55:31 +02:00
1 parent 1c6fcea205
commit 1276090705
5 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -431,7 +431,7 @@ void openDebugLogfile()
bool openBitcoinConf()
{
fs::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
fs::path pathConfig = GetConfigFile(gArgs.GetPathArg("-conf", BITCOIN_CONF_FILENAME));
/* Create the file */
std::ofstream configFile{pathConfig, std::ios_base::app};