aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-09-21 12:15:18 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-09-21 12:06:58 +0200
commitfa58edbffe929da45004d4406d7d1ffc7d14dc98 (patch)
tree0c35b5706ba8c32c607ea42f3af5dc8a0e683998 /src/wallet/wallet.cpp
parentfab91070d38aa248a852e04c56dcb73e4022872d (diff)
downloadbitcoin-fa58edbffe929da45004d4406d7d1ffc7d14dc98.tar.xz
[wallet] Introduce DEFAULT_DISABLE_WALLET
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 27dd4c0a95..abb1ea7e76 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -414,7 +414,7 @@ void CWallet::Flush(bool shutdown)
bool CWallet::Verify()
{
- if (GetBoolArg("-disablewallet", false))
+ if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
return true;
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
@@ -3296,7 +3296,7 @@ std::string CWallet::GetWalletHelpString(bool showDebug)
bool CWallet::InitLoadWallet()
{
- if (GetBoolArg("-disablewallet", false)) {
+ if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
pwalletMain = NULL;
LogPrintf("Wallet disabled!\n");
return true;
@@ -3473,7 +3473,7 @@ bool CWallet::InitLoadWallet()
bool CWallet::ParameterInteraction()
{
- if (GetBoolArg("-disablewallet", false))
+ if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
return true;
if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && SoftSetBoolArg("-walletbroadcast", false)) {