diff options
| author | Luke Dashjr <[email protected]> | 2015-07-01 04:29:50 +0000 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2015-11-28 18:47:29 +0100 |
| commit | 3307bdb3331732e781c77a88ef7053fe23c78701 (patch) | |
| tree | cfede4ac8fcd53cbe3c827cd50332dfad10e543d /src/init.cpp | |
| parent | Constrain constant values to a single location in code (diff) | |
| download | discoin-3307bdb3331732e781c77a88ef7053fe23c78701.tar.xz discoin-3307bdb3331732e781c77a88ef7053fe23c78701.zip | |
Bugfix: Omit wallet-related options from -help when wallet is not supported
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 55331a3c6..eccdaca54 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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" @@ -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)")); |