diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-09-21 12:37:00 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-09-21 13:11:15 +0200 |
commit | 6666ca63791788c951109b87b75c24ca99b917cd (patch) | |
tree | 080447081700d8381865374ecd553b4f84fedacb /src/qt/walletmodel.cpp | |
parent | fa58edbffe929da45004d4406d7d1ffc7d14dc98 (diff) |
[qt] WalletModel: Expose disablewallet
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r-- | src/qt/walletmodel.cpp | 5 |
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(); |