|
|
|
@ -37,7 +37,6 @@ using namespace boost;
@@ -37,7 +37,6 @@ using namespace boost;
|
|
|
|
|
|
|
|
|
|
std::string strWalletFile; |
|
|
|
|
CWallet* pwalletMain; |
|
|
|
|
CClientUIInterface uiInterface; |
|
|
|
|
|
|
|
|
|
#ifdef WIN32 |
|
|
|
|
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
|
|
|
|
@ -181,8 +180,6 @@ std::string HelpMessage(HelpMessageMode hmm)
@@ -181,8 +180,6 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|
|
|
|
strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n"; |
|
|
|
|
strUsage += " -testnet " + _("Use the test network") + "\n"; |
|
|
|
|
|
|
|
|
|
if(hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT) |
|
|
|
|
{ |
|
|
|
|
strUsage += " -pid=<file> " + _("Specify pid file (default: bitcoind.pid)") + "\n"; |
|
|
|
|
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n"; |
|
|
|
|
strUsage += " -wallet=<file> " + _("Specify wallet file (within data directory)") + "\n"; |
|
|
|
@ -236,7 +233,6 @@ std::string HelpMessage(HelpMessageMode hmm)
@@ -236,7 +233,6 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|
|
|
|
#ifdef WIN32 |
|
|
|
|
strUsage += " -printtodebugger " + _("Send trace/debug info to debugger") + "\n"; |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (hmm == HMM_BITCOIN_QT) |
|
|
|
|
{ |
|
|
|
@ -250,23 +246,10 @@ std::string HelpMessage(HelpMessageMode hmm)
@@ -250,23 +246,10 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_CLI) |
|
|
|
|
{ |
|
|
|
|
strUsage += " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n"; |
|
|
|
|
strUsage += " -rpcwait " + _("Wait for RPC server to start") + "\n"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n"; |
|
|
|
|
strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n"; |
|
|
|
|
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT) |
|
|
|
|
{ |
|
|
|
|
strUsage += " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)") + "\n"; |
|
|
|
|
} else { |
|
|
|
|
strUsage += " -rpcport=<port> " + _("Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)") + "\n"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT) |
|
|
|
|
{ |
|
|
|
|
strUsage += " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n"; |
|
|
|
|
strUsage += " -rpcthreads=<n> " + _("Set the number of threads to service RPC calls (default: 4)") + "\n"; |
|
|
|
|
strUsage += " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n"; |
|
|
|
@ -287,16 +270,12 @@ std::string HelpMessage(HelpMessageMode hmm)
@@ -287,16 +270,12 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|
|
|
|
strUsage += " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n"; |
|
|
|
|
strUsage += " -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n"; |
|
|
|
|
strUsage += " -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
strUsage += "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n"; |
|
|
|
|
strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n"; |
|
|
|
|
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT) |
|
|
|
|
{ |
|
|
|
|
strUsage += " -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n"; |
|
|
|
|
strUsage += " -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n"; |
|
|
|
|
strUsage += " -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)") + "\n"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return strUsage; |
|
|
|
|
} |
|
|
|
|