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

Method GetChainTypeString

src/common/args.cpp:919–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919std::string ArgsManager::GetChainTypeString() const
920{
921 auto arg = GetChainArg();
922 if (auto* parsed = std::get_if<ChainType>(&arg)) return ChainTypeToString(*parsed);
923 return std::get<std::string>(arg);
924}
925
926std::variant<ChainType, std::string> ArgsManager::GetChainArg() const
927{

Callers 15

UseMultiprocessFunction · 0.45
CallIPCFunction · 0.45
AppInitMainFunction · 0.45
GetExternalSignerMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
system.cppFile · 0.45
setClientModelMethod · 0.45
updateWindowTitleMethod · 0.45
SetStartOnSystemStartupFunction · 0.45
enumeratesignersFunction · 0.45
getmininginfoFunction · 0.45

Calls 1

ChainTypeToStringFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36