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

Method GetUnrecognizedSections

src/common/args.cpp:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154std::list<SectionInfo> ArgsManager::GetUnrecognizedSections() const
155{
156 // Section names to be recognized in the config file.
157 static const std::set<std::string> available_sections{
158 ChainTypeToString(ChainType::REGTEST),
159 ChainTypeToString(ChainType::SIGNET),
160 ChainTypeToString(ChainType::TESTNET),
161 ChainTypeToString(ChainType::TESTNET4),
162 ChainTypeToString(ChainType::MAIN),
163 };
164
165 LOCK(cs_args);
166 std::list<SectionInfo> unrecognized = m_config_sections;
167 unrecognized.remove_if([](const SectionInfo& appeared){ return available_sections.contains(appeared.m_name); });
168 return unrecognized;
169}
170
171void ArgsManager::SelectConfigNetwork(const std::string& network)
172{

Callers 2

system.cppFile · 0.80

Calls 2

ChainTypeToStringFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected