| 12 | #include <cassert> |
| 13 | |
| 14 | void SetupChainParamsBaseOptions(ArgsManager &argsman) { |
| 15 | argsman.AddArg( |
| 16 | "-chain=<chain>", |
| 17 | "Use the chain <chain> (default: main). Allowed values: main, " |
| 18 | "test, regtest", |
| 19 | ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS); |
| 20 | argsman.AddArg( |
| 21 | "-regtest", |
| 22 | "Enter regression test mode, which uses a special chain in which " |
| 23 | "blocks can be solved instantly. This is intended for regression " |
| 24 | "testing tools and app development. Equivalent to -chain=regtest.", |
| 25 | ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, |
| 26 | OptionsCategory::CHAINPARAMS); |
| 27 | argsman.AddArg("-testnet", "Use the test chain. Equivalent to -chain=test.", |
| 28 | ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS); |
| 29 | } |
| 30 | |
| 31 | static std::unique_ptr<CBaseChainParams> globalChainBaseParams; |
| 32 |
no test coverage detected