Skip to content

Commit

Permalink
Bugfix: Omit wallet-related options from -help when wallet is not sup…
Browse files Browse the repository at this point in the history
…ported
  • Loading branch information
luke-jr authored and MarcoFalke committed Nov 28, 2015
1 parent b966aa8 commit 3307bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/init.cpp
Expand Up @@ -24,7 +24,6 @@
#include "net.h"
#include "policy/policy.h"
#include "rpcserver.h"
#include "script/sigcache.h"
#include "script/standard.h"
#include "script/sigcache.h"
#include "scheduler.h"
Expand Down Expand Up @@ -465,7 +464,9 @@ std::string HelpMessage(HelpMessageMode mode)
if (showDebug)
{
strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction priority and fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY));
#ifdef ENABLE_WALLET
strUsage += HelpMessageOpt("-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)", DEFAULT_WALLET_PRIVDB));
#endif
}
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));

Expand Down

0 comments on commit 3307bdb

Please sign in to comment.