Skip to content

Commit c71f0ca

Browse files
committed
Merge #9960: Trivial: Add const modifier to GetHDChain and IsHDEnabled
3cef950 Trivial: Add const modifier to GetHDChain and IsHDEnabled (NicolasDorier) Tree-SHA512: 73126689e179d70e6823950b51aae4da0a1e348436bc72338814f3afeec27868bb479d9e8261f86e4fe851e84492778a30c5f1fe76c9d7dd91796d0e38baeaf0
2 parents b403ec5 + 3cef950 commit c71f0ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ bool CWallet::SetHDChain(const CHDChain& chain, bool memonly)
13271327
return true;
13281328
}
13291329

1330-
bool CWallet::IsHDEnabled()
1330+
bool CWallet::IsHDEnabled() const
13311331
{
13321332
return !hdChain.masterKeyID.IsNull();
13331333
}

src/wallet/wallet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,10 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
10151015

10161016
/* Set the HD chain model (chain child index counters) */
10171017
bool SetHDChain(const CHDChain& chain, bool memonly);
1018-
const CHDChain& GetHDChain() { return hdChain; }
1018+
const CHDChain& GetHDChain() const { return hdChain; }
10191019

10201020
/* Returns true if HD is enabled */
1021-
bool IsHDEnabled();
1021+
bool IsHDEnabled() const;
10221022

10231023
/* Generates a new HD master key (will not be activated) */
10241024
CPubKey GenerateNewHDMasterKey();

0 commit comments

Comments
 (0)