aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-09-21 12:37:00 +0200
committerMarcoFalke <[email protected]>2016-09-21 13:11:15 +0200
commit6666ca63791788c951109b87b75c24ca99b917cd (patch)
tree080447081700d8381865374ecd553b4f84fedacb /src/qt/walletmodel.cpp
parent[wallet] Introduce DEFAULT_DISABLE_WALLET (diff)
downloaddiscoin-6666ca63791788c951109b87b75c24ca99b917cd.tar.xz
discoin-6666ca63791788c951109b87b75c24ca99b917cd.zip
[qt] WalletModel: Expose disablewallet
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 73851e97f..ad3ba996f 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -684,6 +684,11 @@ bool WalletModel::abandonTransaction(uint256 hash) const
return wallet->AbandonTransaction(hash);
}
+bool WalletModel::isWalletEnabled()
+{
+ return !GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET);
+}
+
bool WalletModel::hdEnabled() const
{
return wallet->IsHDEnabled();