aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-11-02 00:41:29 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-11-07 19:13:38 +0000
commit7963335d2512deea1f286d9c0b94bfaef5d9c14b (patch)
tree063928986f72fa049dee7db3d2f71e72265d38af /src
parentb411c2a12ab3896840a4c6334336ddc46afee8bb (diff)
downloadbitcoin-7963335d2512deea1f286d9c0b94bfaef5d9c14b.tar.xz
Fix -disablewallet default value
Diffstat (limited to 'src')
-rw-r--r--src/wallet/init.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 6af6552325..6b5d4cc668 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -178,15 +178,18 @@ bool WalletParameterInteraction()
void RegisterWalletRPC(CRPCTable &t)
{
- if (gArgs.GetBoolArg("-disablewallet", false)) return;
+ if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
+ return;
+ }
RegisterWalletRPCCommands(t);
}
bool VerifyWallets()
{
- if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
+ if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
return true;
+ }
uiInterface.InitMessage(_("Verifying wallet(s)..."));