| 152 | } |
| 153 | |
| 154 | std::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 | |
| 171 | void ArgsManager::SelectConfigNetwork(const std::string& network) |
| 172 | { |
no test coverage detected