Skip to content

Commit 3cef950

Browse files
committed
Trivial: Add const modifier to GetHDChain and IsHDEnabled
1 parent 6996e06 commit 3cef950

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
@@ -1329,7 +1329,7 @@ bool CWallet::SetHDChain(const CHDChain& chain, bool memonly)
13291329
return true;
13301330
}
13311331

1332-
bool CWallet::IsHDEnabled()
1332+
bool CWallet::IsHDEnabled() const
13331333
{
13341334
return !hdChain.masterKeyID.IsNull();
13351335
}

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)