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

Method GetChainType

src/common/args.cpp:912–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910}
911
912ChainType ArgsManager::GetChainType() const
913{
914 std::variant<ChainType, std::string> arg = GetChainArg();
915 if (auto* parsed = std::get_if<ChainType>(&arg)) return *parsed;
916 throw std::runtime_error(strprintf("Unknown chain %s.", std::get<std::string>(arg)));
917}
918
919std::string ArgsManager::GetChainTypeString() const
920{

Callers 15

AppInitRawTxFunction · 0.45
AppInitRPCFunction · 0.45
ChainToStringMethod · 0.45
AppInitUtilFunction · 0.45
AppInitMainFunction · 0.45
WalletAppInitFunction · 0.45
GuiMainFunction · 0.45
showIfNeededMethod · 0.45
updateWindowTitleMethod · 0.45
DummyAddressFunction · 0.45
StartupShortcutPathFunction · 0.45

Calls

no outgoing calls

Tested by 1

appTestsMethod · 0.36