Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | gArgs.AddArg("-stdin", | ||||
"Read extra arguments from standard input, one per line until " | "Read extra arguments from standard input, one per line until " | ||||
"EOF/Ctrl-D (recommended for sensitive information such as " | "EOF/Ctrl-D (recommended for sensitive information such as " | ||||
"passphrases). When combined with -stdinrpcpass, the first " | "passphrases). When combined with -stdinrpcpass, the first " | ||||
"line from standard input is used for the RPC password.", | "line from standard input is used for the RPC password.", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ||||
gArgs.AddArg( | gArgs.AddArg( | ||||
"-rpcwallet=<walletname>", | "-rpcwallet=<walletname>", | ||||
"Send RPC for non-default wallet on RPC server (needs to exactly match " | "Send RPC for non-default wallet on RPC server (needs to exactly match " | ||||
"corresponding -wallet option passed to bitcoind)", | "corresponding -wallet option passed to bitcoind). This changes the " | ||||
"RPC endpoint used, e.g. http://127.0.0.1:8332/wallet/<walletname>", | |||||
ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ||||
} | } | ||||
/** libevent event log callback */ | /** libevent event log callback */ | ||||
static void libevent_log_cb(int severity, const char *msg) { | static void libevent_log_cb(int severity, const char *msg) { | ||||
#ifndef EVENT_LOG_ERR | #ifndef EVENT_LOG_ERR | ||||
// EVENT_LOG_ERR was added in 2.0.19; but before then _EVENT_LOG_ERR existed. | // EVENT_LOG_ERR was added in 2.0.19; but before then _EVENT_LOG_ERR existed. | ||||
#define EVENT_LOG_ERR _EVENT_LOG_ERR | #define EVENT_LOG_ERR _EVENT_LOG_ERR | ||||
▲ Show 20 Lines • Show All 570 Lines • Show Last 20 Lines |