diff options
| author | Andrew Chow <[email protected]> | 2019-07-08 17:05:05 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-04-23 13:59:48 -0400 |
| commit | ec2f9e1178c8e38c0a5ca063fe81adac8f916348 (patch) | |
| tree | f4c22c6985f5133c8d0f48c939fc2789e69a9ddc /src/wallet/wallet.cpp | |
| parent | Implement MarkUnusedAddresses in DescriptorScriptPubKeyMan (diff) | |
| download | discoin-ec2f9e1178c8e38c0a5ca063fe81adac8f916348.tar.xz discoin-ec2f9e1178c8e38c0a5ca063fe81adac8f916348.zip | |
Implement IsHDEnabled in DescriptorScriptPubKeyMan
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 098b059a7..8f42d1d75 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1331,9 +1331,10 @@ CAmount CWallet::GetChange(const CTransaction& tx) const bool CWallet::IsHDEnabled() const { + // All Active ScriptPubKeyMans must be HD for this to be true bool result = true; - for (const auto& spk_man_pair : m_spk_managers) { - result &= spk_man_pair.second->IsHDEnabled(); + for (const auto& spk_man : GetActiveScriptPubKeyMans()) { + result &= spk_man->IsHDEnabled(); } return result; } |