MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetupBitcoinUtilArgs

Function SetupBitcoinUtilArgs

src/bitcoin-util.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr;
30
31static void SetupBitcoinUtilArgs(ArgsManager &argsman)
32{
33 SetupHelpOptions(argsman);
34
35 argsman.AddArg("-version", "Print version and exit", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
36
37 argsman.AddCommand("grind", "Perform proof of work on hex header string");
38
39 SetupChainParamsBaseOptions(argsman);
40}
41
42// This function returns either one of EXIT_ codes when it's expected to stop the process or
43// 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