-includeconf=<path> support in config handler, for including external configuration files

This commit is contained in:
Karl-Johan Alm
2018-04-18 14:35:44 +09:00
parent a0079d4b6d
commit 629ff8c358
8 changed files with 41 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ bool AppInit(int argc, char* argv[])
}
try
{
gArgs.ReadConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
gArgs.ReadConfigFiles();
} catch (const std::exception& e) {
fprintf(stderr,"Error reading configuration file: %s\n", e.what());
return false;