From e7a21faa2b1e2e224d49a1ed362c1eefb192f7ca Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Sun, 12 May 2019 00:12:59 -0500 Subject: [PATCH] Merge Bitcoin#9960: Trivial: Add const modifier to GetHDChain and IsHDEnabled Signed-off-by: Pasta --- src/wallet/wallet.cpp | 2 +- src/wallet/wallet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 072250247..9f7d84769 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1604,7 +1604,7 @@ bool CWallet::GetDecryptedHDChain(CHDChain& hdChainRet) return true; } -bool CWallet::IsHDEnabled() +bool CWallet::IsHDEnabled() const { CHDChain hdChainCurrent; return GetHDChain(hdChainCurrent); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 26095893b..1884f7b9d 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1164,7 +1164,7 @@ public: */ /* Returns true if HD is enabled */ - bool IsHDEnabled(); + bool IsHDEnabled() const; /* Generates a new HD chain */ void GenerateNewHDChain(); /* Set the HD chain model (chain child index counters) */