diff options
| author | MarcoFalke <[email protected]> | 2016-09-21 12:15:18 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-09-21 12:06:58 +0200 |
| commit | fa58edbffe929da45004d4406d7d1ffc7d14dc98 (patch) | |
| tree | 0c35b5706ba8c32c607ea42f3af5dc8a0e683998 /src | |
| parent | init: Get rid of fDisableWallet (diff) | |
| download | discoin-fa58edbffe929da45004d4406d7d1ffc7d14dc98.tar.xz discoin-fa58edbffe929da45004d4406d7d1ffc7d14dc98.zip | |
[wallet] Introduce DEFAULT_DISABLE_WALLET
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 2 | ||||
| -rw-r--r-- | src/wallet/wallet.cpp | 6 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 272df3fda..dcd3f155b 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -123,7 +123,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n QString windowTitle = tr(PACKAGE_NAME) + " - "; #ifdef ENABLE_WALLET /* if compiled with wallet support, -disablewallet can still disable the wallet */ - enableWallet = !GetBoolArg("-disablewallet", false); + enableWallet = !GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET); #else enableWallet = false; #endif // ENABLE_WALLET diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 27dd4c0a9..abb1ea7e7 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)) { diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 584f01320..f6c658928 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -59,7 +59,7 @@ static const bool DEFAULT_WALLET_RBF = false; //! Largest (in bytes) free transaction we're willing to create static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000; static const bool DEFAULT_WALLETBROADCAST = true; - +static const bool DEFAULT_DISABLE_WALLET = false; //! if set, all keys will be derived by using BIP32 static const bool DEFAULT_USE_HD_WALLET = true; |