Skip to content

Commit 3307bdb

Browse files
luke-jrMarcoFalke
authored andcommitted
Bugfix: Omit wallet-related options from -help when wallet is not supported
1 parent b966aa8 commit 3307bdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/init.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "net.h"
2525
#include "policy/policy.h"
2626
#include "rpcserver.h"
27-
#include "script/sigcache.h"
2827
#include "script/standard.h"
2928
#include "script/sigcache.h"
3029
#include "scheduler.h"
@@ -465,7 +464,9 @@ std::string HelpMessage(HelpMessageMode mode)
465464
if (showDebug)
466465
{
467466
strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction priority and fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY));
467+
#ifdef ENABLE_WALLET
468468
strUsage += HelpMessageOpt("-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)", DEFAULT_WALLET_PRIVDB));
469+
#endif
469470
}
470471
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));
471472

0 commit comments

Comments
 (0)