MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / LoadParamsFromConfigFile

Method LoadParamsFromConfigFile

src/config/chainparams.cpp:399–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool CBaseParams::LoadParamsFromConfigFile(int argc, const char* const argv[]) {
400 ParseParameters(argc, argv);
401 if (!boost::filesystem::is_directory(GetDataDir(false))) {
402 fprintf(stderr, "Error: Specified data directory \"%s\" does not exist.\n", CBaseParams::m_mapArgs["-datadir"].c_str());
403 return false;
404 }
405
406 try {
407 ReadConfigFile(CBaseParams::m_mapArgs, CBaseParams::m_mapMultiArgs);
408 } catch (std::exception &e) {
409 fprintf(stderr, "Error: reading configuration file: %s\n", e.what());
410 return false;
411 }
412
413 return true;
414}
415
416CBaseParams::CBaseParams() {
417 fImporting = false;

Callers

nothing calls this directly

Calls 2

ReadConfigFileFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected