mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
[wallet] Introduce DEFAULT_DISABLE_WALLET
This commit is contained in:
parent
fab91070d3
commit
fa58edbffe
@ -123,7 +123,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
|
|||||||
QString windowTitle = tr(PACKAGE_NAME) + " - ";
|
QString windowTitle = tr(PACKAGE_NAME) + " - ";
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
/* if compiled with wallet support, -disablewallet can still disable the wallet */
|
/* if compiled with wallet support, -disablewallet can still disable the wallet */
|
||||||
enableWallet = !GetBoolArg("-disablewallet", false);
|
enableWallet = !GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET);
|
||||||
#else
|
#else
|
||||||
enableWallet = false;
|
enableWallet = false;
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
|
@ -414,7 +414,7 @@ void CWallet::Flush(bool shutdown)
|
|||||||
|
|
||||||
bool CWallet::Verify()
|
bool CWallet::Verify()
|
||||||
{
|
{
|
||||||
if (GetBoolArg("-disablewallet", false))
|
if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
|
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
|
||||||
@ -3296,7 +3296,7 @@ std::string CWallet::GetWalletHelpString(bool showDebug)
|
|||||||
|
|
||||||
bool CWallet::InitLoadWallet()
|
bool CWallet::InitLoadWallet()
|
||||||
{
|
{
|
||||||
if (GetBoolArg("-disablewallet", false)) {
|
if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
|
||||||
pwalletMain = NULL;
|
pwalletMain = NULL;
|
||||||
LogPrintf("Wallet disabled!\n");
|
LogPrintf("Wallet disabled!\n");
|
||||||
return true;
|
return true;
|
||||||
@ -3473,7 +3473,7 @@ bool CWallet::InitLoadWallet()
|
|||||||
|
|
||||||
bool CWallet::ParameterInteraction()
|
bool CWallet::ParameterInteraction()
|
||||||
{
|
{
|
||||||
if (GetBoolArg("-disablewallet", false))
|
if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && SoftSetBoolArg("-walletbroadcast", false)) {
|
if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && SoftSetBoolArg("-walletbroadcast", false)) {
|
||||||
|
@ -59,7 +59,7 @@ static const bool DEFAULT_WALLET_RBF = false;
|
|||||||
//! Largest (in bytes) free transaction we're willing to create
|
//! Largest (in bytes) free transaction we're willing to create
|
||||||
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
|
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
|
||||||
static const bool DEFAULT_WALLETBROADCAST = true;
|
static const bool DEFAULT_WALLETBROADCAST = true;
|
||||||
|
static const bool DEFAULT_DISABLE_WALLET = false;
|
||||||
//! if set, all keys will be derived by using BIP32
|
//! if set, all keys will be derived by using BIP32
|
||||||
static const bool DEFAULT_USE_HD_WALLET = true;
|
static const bool DEFAULT_USE_HD_WALLET = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user