Skip to content

Commit

Permalink
fix: drop requirement of HD in CanGetAddresses for watch-only wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Mar 8, 2024
1 parent d04c1a7 commit 9a02f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/scriptpubkeyman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal) const
LOCK(cs_KeyStore);
// Check if the keypool has keys
bool keypool_has_keys;
if (internal && m_storage.CanSupportFeature(FEATURE_HD)) {
if (internal) {
keypool_has_keys = setInternalKeyPool.size() > 0;
} else {
keypool_has_keys = KeypoolCountExternalKeys() > 0;
Expand Down

0 comments on commit 9a02f7d

Please sign in to comment.