Skip to content

Commit e1e1442

Browse files
committed
Activate no-privkey -> ISMINE_WATCH_ONLY behavior for LegacySPKM only
1 parent 1705f19 commit e1e1442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,8 +2168,8 @@ std::map<CTxDestination, std::vector<COutput>> CWallet::ListCoins(interfaces::Ch
21682168

21692169
std::vector<COutPoint> lockedCoins;
21702170
ListLockedCoins(lockedCoins);
2171-
// Include watch-only for wallets without private keys
2172-
const bool include_watch_only = IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
2171+
// Include watch-only for LegacyScriptPubKeyMan wallets without private keys
2172+
const bool include_watch_only = GetLegacyScriptPubKeyMan() && IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
21732173
const isminetype is_mine_filter = include_watch_only ? ISMINE_WATCH_ONLY : ISMINE_SPENDABLE;
21742174
for (const COutPoint& output : lockedCoins) {
21752175
auto it = mapWallet.find(output.hash);

0 commit comments

Comments
 (0)