| 960 | } |
| 961 | |
| 962 | std::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 |
| 977 | fs::path GetPidFile() |
no outgoing calls