diff options
| author | NicolasDorier <[email protected]> | 2017-03-09 11:32:02 +0900 |
|---|---|---|
| committer | NicolasDorier <[email protected]> | 2017-03-09 11:32:02 +0900 |
| commit | 3cef95058c0c30045fb41f8bd957f0ed3ba01df9 (patch) | |
| tree | 509e8b1b0fd8fce95f09cab7b722272932ba5311 | |
| parent | Merge #9952: Add historical release notes for 0.14.0 (diff) | |
| download | discoin-3cef95058c0c30045fb41f8bd957f0ed3ba01df9.tar.xz discoin-3cef95058c0c30045fb41f8bd957f0ed3ba01df9.zip | |
Trivial: Add const modifier to GetHDChain and IsHDEnabled
| -rw-r--r-- | src/wallet/wallet.cpp | 2 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index dc3e0e28d..594afb411 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1329,7 +1329,7 @@ bool CWallet::SetHDChain(const CHDChain& chain, bool memonly) return true; } -bool CWallet::IsHDEnabled() +bool CWallet::IsHDEnabled() const { return !hdChain.masterKeyID.IsNull(); } diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 9f89c89bc..cae92a0b0 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1015,10 +1015,10 @@ public: /* Set the HD chain model (chain child index counters) */ bool SetHDChain(const CHDChain& chain, bool memonly); - const CHDChain& GetHDChain() { return hdChain; } + const CHDChain& GetHDChain() const { return hdChain; } /* Returns true if HD is enabled */ - bool IsHDEnabled(); + bool IsHDEnabled() const; /* Generates a new HD master key (will not be activated) */ CPubKey GenerateNewHDMasterKey(); |