MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetUnsuitableSectionOnlyArgs

Method GetUnsuitableSectionOnlyArgs

src/util/system.cpp:268–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266ArgsManager::~ArgsManager() {}
267
268const std::set<std::string> ArgsManager::GetUnsuitableSectionOnlyArgs() const
269{
270 std::set<std::string> unsuitables;
271
272 LOCK(cs_args);
273
274 // if there's no section selected, don't worry
275 if (m_network.empty()) return std::set<std::string> {};
276
277 // if it's okay to use the default section for this network, don't worry
278 if (m_network == CBaseChainParams::DEFAULT) return std::set<std::string> {};
279
280 for (const auto& arg : m_network_only_args) {
281 if (OnlyHasDefaultSectionSetting(m_settings, m_network, SettingName(arg))) {
282 unsuitables.insert(arg);
283 }
284 }
285 return unsuitables;
286}
287
288void ArgsManager::SelectConfigNetwork(const std::string& network)
289{

Callers 3

BOOST_FIXTURE_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls 4

SettingNameFunction · 0.85
emptyMethod · 0.45
insertMethod · 0.45

Tested by 2

BOOST_FIXTURE_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64