| 78 | } |
| 79 | |
| 80 | bool IsConfSupported(KeyInfo& key, std::string& error) { |
| 81 | if (key.name == "conf") { |
| 82 | error = "conf cannot be set in the configuration file; use includeconf= if you want to include additional config files"; |
| 83 | return false; |
| 84 | } |
| 85 | if (key.name == "reindex") { |
| 86 | // reindex can be set in a config file but it is strongly discouraged as this will cause the node to reindex on |
| 87 | // every restart. Allow the config but throw a warning |
| 88 | LogWarning("reindex=1 is set in the configuration file, which will significantly slow down startup. Consider removing or commenting out this option for better performance, unless there is currently a condition which makes rebuilding the indexes necessary"); |
| 89 | return true; |
| 90 | } |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | bool ArgsManager::ReadConfigStream(std::istream& stream, const std::string& filepath, std::string& error, bool ignore_invalid_keys) |
| 95 | { |