diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-03-09 10:27:03 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-03-09 10:27:31 +0100 |
| commit | c71f0ca5f8394eda9300d79138d0f2bca60f151a (patch) | |
| tree | 276a0a7f09064982d94e62d37ac9b94ea5edbcb4 /src | |
| parent | Merge #9916: Fix msvc compiler error C4146 (minus operator applied to unsigne... (diff) | |
| parent | Trivial: Add const modifier to GetHDChain and IsHDEnabled (diff) | |
| download | discoin-c71f0ca5f8394eda9300d79138d0f2bca60f151a.tar.xz discoin-c71f0ca5f8394eda9300d79138d0f2bca60f151a.zip | |
Merge #9960: Trivial: Add const modifier to GetHDChain and IsHDEnabled
3cef950 Trivial: Add const modifier to GetHDChain and IsHDEnabled (NicolasDorier)
Tree-SHA512: 73126689e179d70e6823950b51aae4da0a1e348436bc72338814f3afeec27868bb479d9e8261f86e4fe851e84492778a30c5f1fe76c9d7dd91796d0e38baeaf0
Diffstat (limited to 'src')
| -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 07b34ae10..965fba67f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1327,7 +1327,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(); |