Skip to content

Commit a7e1d50

Browse files
committed
In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLET
1 parent d3165ed commit a7e1d50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ std::string HelpMessage(HelpMessageMode mode)
218218
}
219219
strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
220220
strUsage += " -dbcache=<n> " + strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"), nMinDbCache, nMaxDbCache, nDefaultDbCache) + "\n";
221-
strUsage += " -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n";
222221
strUsage += " -loadblock=<file> " + _("Imports blocks from external blk000??.dat file") + " " + _("on startup") + "\n";
223222
strUsage += " -maxorphanblocks=<n> " + strprintf(_("Keep at most <n> unconnectable blocks in memory (default: %u)"), DEFAULT_MAX_ORPHAN_BLOCKS) + "\n";
224223
strUsage += " -par=<n> " + strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"), -(int)boost::thread::hardware_concurrency(), MAX_SCRIPTCHECK_THREADS, DEFAULT_SCRIPTCHECK_THREADS) + "\n";
@@ -257,6 +256,7 @@ std::string HelpMessage(HelpMessageMode mode)
257256
#ifdef ENABLE_WALLET
258257
strUsage += "\n" + _("Wallet options:") + "\n";
259258
strUsage += " -disablewallet " + _("Do not load the wallet and disable wallet RPC calls") + "\n";
259+
strUsage += " -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n";
260260
if (GetBoolArg("-help-debug", false))
261261
strUsage += " -mintxfee=<amt> " + strprintf(_("Fees (in BTC/Kb) smaller than this are considered zero fee for transaction creation (default: %s)"), FormatMoney(CWallet::minTxFee.GetFeePerK())) + "\n";
262262
strUsage += " -paytxfee=<amt> " + strprintf(_("Fee (in BTC/kB) to add to transactions you send (default: %s)"), FormatMoney(payTxFee.GetFeePerK())) + "\n";
@@ -292,8 +292,10 @@ std::string HelpMessage(HelpMessageMode mode)
292292
if (mode == HMM_BITCOIN_QT)
293293
strUsage += ", qt";
294294
strUsage += ".\n";
295+
#ifdef ENABLE_WALLET
295296
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n";
296297
strUsage += " -genproclimit=<n> " + _("Set the processor limit for when generation is on (-1 = unlimited, default: -1)") + "\n";
298+
#endif
297299
strUsage += " -help-debug " + _("Show all debugging options (usage: --help -help-debug)") + "\n";
298300
strUsage += " -logips " + _("Include IP addresses in debug output (default: 0)") + "\n";
299301
strUsage += " -logtimestamps " + _("Prepend debug output with timestamp (default: 1)") + "\n";

0 commit comments

Comments
 (0)