aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-09-21 12:37:00 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-09-21 13:11:15 +0200
commit6666ca63791788c951109b87b75c24ca99b917cd (patch)
tree080447081700d8381865374ecd553b4f84fedacb /src/qt/walletmodel.cpp
parentfa58edbffe929da45004d4406d7d1ffc7d14dc98 (diff)
downloadbitcoin-6666ca63791788c951109b87b75c24ca99b917cd.tar.xz
[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 73851e97fc..ad3ba996f1 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();