MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsConfSupported

Function IsConfSupported

src/common/config.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool 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
94bool ArgsManager::ReadConfigStream(std::istream& stream, const std::string& filepath, std::string& error, bool ignore_invalid_keys)
95{

Callers 1

ReadConfigStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected