Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
Show All 38 Lines | static int AppInitRawTx(int argc, char *argv[]) { | ||||
// | // | ||||
// Parameters | // Parameters | ||||
// | // | ||||
gArgs.ParseParameters(argc, argv); | gArgs.ParseParameters(argc, argv); | ||||
// Check for -testnet or -regtest parameter (Params() calls are only valid | // Check for -testnet or -regtest parameter (Params() calls are only valid | ||||
// after this clause) | // after this clause) | ||||
try { | try { | ||||
SelectParams(ChainNameFromCommandLine()); | SelectParams(gArgs.GetChainName()); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
fprintf(stderr, "Error: %s\n", e.what()); | fprintf(stderr, "Error: %s\n", e.what()); | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
fCreateBlank = gArgs.GetBoolArg("-create", false); | fCreateBlank = gArgs.GetBoolArg("-create", false); | ||||
if (argc < 2 || gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || | if (argc < 2 || gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || | ||||
▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines |