mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Activate no-privkey -> ISMINE_WATCH_ONLY behavior for LegacySPKM only
This commit is contained in:
@@ -2168,8 +2168,8 @@ std::map<CTxDestination, std::vector<COutput>> CWallet::ListCoins(interfaces::Ch
|
|||||||
|
|
||||||
std::vector<COutPoint> lockedCoins;
|
std::vector<COutPoint> lockedCoins;
|
||||||
ListLockedCoins(lockedCoins);
|
ListLockedCoins(lockedCoins);
|
||||||
// Include watch-only for wallets without private keys
|
// Include watch-only for LegacyScriptPubKeyMan wallets without private keys
|
||||||
const bool include_watch_only = IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
|
const bool include_watch_only = GetLegacyScriptPubKeyMan() && IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
|
||||||
const isminetype is_mine_filter = include_watch_only ? ISMINE_WATCH_ONLY : ISMINE_SPENDABLE;
|
const isminetype is_mine_filter = include_watch_only ? ISMINE_WATCH_ONLY : ISMINE_SPENDABLE;
|
||||||
for (const COutPoint& output : lockedCoins) {
|
for (const COutPoint& output : lockedCoins) {
|
||||||
auto it = mapWallet.find(output.hash);
|
auto it = mapWallet.find(output.hash);
|
||||||
|
|||||||
Reference in New Issue
Block a user