MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / HelpMessage

Function HelpMessage

src/init.cpp:209–330  ·  view source on GitHub ↗

Core-specific options shared between UI, daemon and RPC client

Source from the content-addressed store, hash-verified

207
208// Core-specific options shared between UI, daemon and RPC client
209string HelpMessage() {
210 string strUsage = _("Options:") + "\n";
211 strUsage += " -? " + _("This help message") + "\n";
212 strUsage += " -alertnotify=<cmd> " + _("Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)") + "\n";
213 strUsage += " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n";
214 strUsage += " -checkblocks=<n> " + _("How many blocks to check at startup (default: 288, 0 = all)") + "\n";
215 strUsage += " -checklevel=<n> " + _("How thorough the block verification of -checkblocks is (0-4, default: 3)") + "\n";
216 strUsage += " -conf=<file> " + _("Specify configuration file (default: ") + IniCfg().GetCoinName() + ".conf)" + "\n";
217#if !defined(WIN32)
218 strUsage += " -daemon " + _("Run in the background as a daemon and accept commands") + "\n";
219#endif
220 strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
221 strUsage += " -dbcache=<n> " + strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"), MIN_DB_CACHE, MAX_DB_CACHE, DEFAULT_DB_CACHE) + "\n";
222 strUsage += " -loadblock=<file> " + _("Imports blocks from external blk000??.dat file") + " " + _("on startup") + "\n";
223 strUsage += " -pid=<file> " + _("Specify pid file (default: coin.pid)") + "\n";
224 strUsage += " -reindex " + _("Rebuild block chain index from current blk000??.dat files") + " " + _("on startup") + "\n";
225 strUsage += " -txindex " + _("Maintain a full transaction index (default: 0)") + "\n";
226 strUsage += " -txtrace " + _("Maintain trace of transaction (default: 1)") + "\n";
227 strUsage += " -logfailures " + _("Log failures into level db in detail (default: 0)") + "\n";
228 strUsage += " -genreceipt " + _("Whether generate receipt(default: 0)") + "\n";
229
230 strUsage += "\n" + _("Connection options:") + "\n";
231 strUsage += " -addnode=<ip> " + _("Add a node to connect to and attempt to keep the connection open") + "\n";
232 strUsage += " -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n";
233 strUsage += " -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n";
234 strUsage += " -bind=<addr> " + _("Bind to given address and always listen on it. Use [host]:port notation for IPv6") + "\n";
235 strUsage += " -connect=<ip> " + _("Connect only to the specified node(s)") + "\n";
236 strUsage += " -discover " + _("Discover own IP address (default: 1 when listening and no -externalip)") + "\n";
237 strUsage += " -dns " + _("Allow DNS lookups for -addnode, -seednode and -connect") + " " + _("(default: 1)") + "\n";
238 strUsage += " -dnsseed " + _("Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)") + "\n";
239 strUsage += " -forcednsseed " + _("Always query for peer addresses via DNS lookup (default: 0)") + "\n";
240 strUsage += " -externalip=<ip> " + _("Specify your own public address") + "\n";
241 strUsage += " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n";
242 strUsage += " -maxconnections=<n> " + _("Maintain at most <n> connections to peers (default: 125)") + "\n";
243 strUsage += " -maxreceivebuffer=<n> " + _("Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)") + "\n";
244 strUsage += " -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)") + "\n";
245 strUsage += " -onion=<ip:port> " + _("Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)") + "\n";
246 strUsage += " -onlynet=<net> " + _("Only connect to nodes in network <net> (IPv4, IPv6 or Tor)") + "\n";
247 strUsage += " -port=<port> " + _("Listen for connections on <port> (default: 8333 or testnet: 18333)") + "\n";
248 strUsage += " -proxy=<ip:port> " + _("Connect through SOCKS proxy") + "\n";
249 strUsage += " -ipserver=<server> " + _("IP Reporting Service") + "\n";
250 strUsage += " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n";
251 strUsage += " -socks=<n> " + _("Select SOCKS version for -proxy (4 or 5, default: 5)") + "\n";
252 strUsage += " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n";
253#ifdef USE_UPNP
254#if USE_UPNP
255 strUsage += " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n";
256#else
257 strUsage += " -upnp " + _("Use UPnP to map the listening port (default: 0)") + "\n";
258#endif
259#endif
260
261#ifdef ENABLE_WALLET
262 strUsage += "\n" + _("Wallet options:") + "\n";
263 strUsage += " -disablewallet " + _("Do not load the wallet and disable wallet RPC calls") + "\n";
264 strUsage += " -genblock " + _("Generate blocks (default: 0)") + "\n";
265 strUsage += " -genblocklimit=<n> " + _("Set the processor limit for when generation is on (-1 = unlimited, default: -1)") + "\n";
266 strUsage += " -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n";

Callers 2

AppInitFunction · 0.85
AppInitFunction · 0.85

Calls 3

_Function · 0.85
GetCoinNameMethod · 0.80
GetBoolArgMethod · 0.80

Tested by 1

AppInitFunction · 0.68