MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetChainName

Method GetChainName

src/util.cpp:962–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962std::string ArgsManager::GetChainName() const
963{
964 bool fRegTest = ArgsManagerHelper::GetNetBoolArg(*this, "-regtest");
965 bool fTestNet = ArgsManagerHelper::GetNetBoolArg(*this, "-testnet");
966
967 if (fTestNet && fRegTest)
968 throw std::runtime_error("Invalid combination of -regtest and -testnet.");
969 if (fRegTest)
970 return CBaseChainParams::REGTEST;
971 if (fTestNet)
972 return CBaseChainParams::TESTNET;
973 return CBaseChainParams::MAIN;
974}
975
976#ifndef WIN32
977fs::path GetPidFile()

Callers 8

AppInitRawTxFunction · 0.80
AppInitRPCFunction · 0.80
AppInitFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
mainFunction · 0.80
StartupShortcutPathFunction · 0.80
GetAutostartFilePathFunction · 0.80
SetStartOnSystemStartupFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64