mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Trivial: Add const modifier to GetHDChain and IsHDEnabled
This commit is contained in:
parent
6996e066b5
commit
3cef95058c
@ -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();
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user