Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
Show All 30 Lines | |||||
static bool fCreateBlank; | static bool fCreateBlank; | ||||
static std::map<std::string, UniValue> registers; | static std::map<std::string, UniValue> registers; | ||||
static const int CONTINUE_EXECUTION = -1; | static const int CONTINUE_EXECUTION = -1; | ||||
const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | ||||
static void SetupBitcoinTxArgs() { | static void SetupBitcoinTxArgs() { | ||||
gArgs.AddArg("-?", "This help message", ArgsManager::ALLOW_ANY, | SetupHelpOptions(gArgs); | ||||
OptionsCategory::OPTIONS); | |||||
gArgs.AddArg("-create", "Create new, empty TX.", ArgsManager::ALLOW_ANY, | gArgs.AddArg("-create", "Create new, empty TX.", ArgsManager::ALLOW_ANY, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
gArgs.AddArg("-json", "Select JSON output", ArgsManager::ALLOW_ANY, | gArgs.AddArg("-json", "Select JSON output", ArgsManager::ALLOW_ANY, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
gArgs.AddArg("-txid", | gArgs.AddArg("-txid", | ||||
"Output only the hex-encoded transaction id of the resultant " | "Output only the hex-encoded transaction id of the resultant " | ||||
"transaction.", | "transaction.", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ||||
Show All 39 Lines | gArgs.AddArg("sign=SIGHASH-FLAGS", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS); | ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS); | ||||
gArgs.AddArg("load=NAME:FILENAME", | gArgs.AddArg("load=NAME:FILENAME", | ||||
"Load JSON file FILENAME into register NAME", | "Load JSON file FILENAME into register NAME", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::REGISTER_COMMANDS); | ArgsManager::ALLOW_ANY, OptionsCategory::REGISTER_COMMANDS); | ||||
gArgs.AddArg("set=NAME:JSON-STRING", | gArgs.AddArg("set=NAME:JSON-STRING", | ||||
"Set register NAME to given JSON-STRING", | "Set register NAME to given JSON-STRING", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::REGISTER_COMMANDS); | ArgsManager::ALLOW_ANY, OptionsCategory::REGISTER_COMMANDS); | ||||
// Hidden | |||||
gArgs.AddArg("-h", "", ArgsManager::ALLOW_ANY, OptionsCategory::HIDDEN); | |||||
gArgs.AddArg("-help", "", ArgsManager::ALLOW_ANY, OptionsCategory::HIDDEN); | |||||
} | } | ||||
// | // | ||||
// This function returns either one of EXIT_ codes when it's expected to stop | // This function returns either one of EXIT_ codes when it's expected to stop | ||||
// the process or CONTINUE_EXECUTION when it's expected to continue further. | // the process or CONTINUE_EXECUTION when it's expected to continue further. | ||||
// | // | ||||
static int AppInitRawTx(int argc, char *argv[]) { | static int AppInitRawTx(int argc, char *argv[]) { | ||||
// | // | ||||
▲ Show 20 Lines • Show All 801 Lines • Show Last 20 Lines |