Merge 4769942d90 into merged_master (Bitcoin PR #19624)

This commit is contained in:
Andrew Poelstra 2020-12-01 06:42:52 +00:00
commit dad417577a
2 changed files with 17 additions and 3 deletions

View file

@ -417,6 +417,14 @@ bool ArgsManager::ReadSettingsFile(std::vector<std::string>* errors)
SaveErrors(read_errors, errors);
return false;
}
for (const auto& setting : m_settings.rw_settings) {
std::string section;
std::string key = setting.first;
(void)InterpretOption(section, key, /* value */ {}); // Split setting key into section and argname
if (!GetArgFlags('-' + key)) {
LogPrintf("Ignoring unknown rw_settings value %s\n", setting.first);
}
}
return true;
}