Browse Source

Merge #9960: Trivial: Add const modifier to GetHDChain and IsHDEnabled

3cef950 Trivial: Add const modifier to GetHDChain and IsHDEnabled (NicolasDorier)

Tree-SHA512: 73126689e179d70e6823950b51aae4da0a1e348436bc72338814f3afeec27868bb479d9e8261f86e4fe851e84492778a30c5f1fe76c9d7dd91796d0e38baeaf0
pull/1/head
Wladimir J. van der Laan 6 years ago
parent
commit
c71f0ca5f8
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/wallet/wallet.cpp
  2. 4
      src/wallet/wallet.h

2
src/wallet/wallet.cpp

@ -1327,7 +1327,7 @@ bool CWallet::SetHDChain(const CHDChain& chain, bool memonly) @@ -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();
}

4
src/wallet/wallet.h

@ -1015,10 +1015,10 @@ public: @@ -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();

Loading…
Cancel
Save