diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 1751f56f05..628fd1e6d3 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1372,9 +1372,10 @@ CAmountMap CWallet::GetDebit(const CTransaction& tx, const isminefilter& filter) bool CWallet::IsHDEnabled() const { // All Active ScriptPubKeyMans must be HD for this to be true - bool result = true; + bool result = false; for (const auto& spk_man : GetActiveScriptPubKeyMans()) { - result &= spk_man->IsHDEnabled(); + if (!spk_man->IsHDEnabled()) return false; + result = true; } return result; }