Browse Source

Trivial: Add const modifier to GetHDChain and IsHDEnabled

0.15
NicolasDorier 8 years ago
parent
commit
3cef95058c
  1. 2
      src/wallet/wallet.cpp
  2. 4
      src/wallet/wallet.h

2
src/wallet/wallet.cpp

@ -1329,7 +1329,7 @@ bool CWallet::SetHDChain(const CHDChain& chain, bool memonly)
return true; return true;
} }
bool CWallet::IsHDEnabled() bool CWallet::IsHDEnabled() const
{ {
return !hdChain.masterKeyID.IsNull(); return !hdChain.masterKeyID.IsNull();
} }

4
src/wallet/wallet.h

@ -1015,10 +1015,10 @@ public:
/* Set the HD chain model (chain child index counters) */ /* Set the HD chain model (chain child index counters) */
bool SetHDChain(const CHDChain& chain, bool memonly); bool SetHDChain(const CHDChain& chain, bool memonly);
const CHDChain& GetHDChain() { return hdChain; } const CHDChain& GetHDChain() const { return hdChain; }
/* Returns true if HD is enabled */ /* Returns true if HD is enabled */
bool IsHDEnabled(); bool IsHDEnabled() const;
/* Generates a new HD master key (will not be activated) */ /* Generates a new HD master key (will not be activated) */
CPubKey GenerateNewHDMasterKey(); CPubKey GenerateNewHDMasterKey();

Loading…
Cancel
Save