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

Function SetupBitcoinUtilArgs

src/bitcoin-util.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30const TranslateFn G_TRANSLATION_FUN{nullptr};
31
32static void SetupBitcoinUtilArgs(ArgsManager &argsman)
33{
34 SetupHelpOptions(argsman);
35
36 argsman.AddArg("-version", "Print version and exit", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
37
38 argsman.AddCommand("grind", "Perform proof of work on hex header string");
39 argsman.AddCommand("netmagic", "Get the network magic bytes of the selected chain");
40
41 SetupChainParamsBaseOptions(argsman);
42}
43
44// This function returns either one of EXIT_ codes when it's expected to stop the process or
45// CONTINUE_EXECUTION when it's expected to continue further.

Callers 1

AppInitUtilFunction · 0.85

Calls 4

SetupHelpOptionsFunction · 0.85
AddArgMethod · 0.80
AddCommandMethod · 0.80

Tested by

no test coverage detected