mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
Activate no-privkey -> ISMINE_WATCH_ONLY behavior for LegacySPKM only
This commit is contained in:
parent
1705f1949a
commit
e1e1442f3e
1 changed files with 2 additions and 2 deletions
|
@ -2168,8 +2168,8 @@ std::map<CTxDestination, std::vector<COutput>> CWallet::ListCoins(interfaces::Ch
|
|||
|
||||
std::vector<COutPoint> lockedCoins;
|
||||
ListLockedCoins(lockedCoins);
|
||||
// Include watch-only for wallets without private keys
|
||||
const bool include_watch_only = IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
|
||||
// Include watch-only for LegacyScriptPubKeyMan wallets without 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;
|
||||
for (const COutPoint& output : lockedCoins) {
|
||||
auto it = mapWallet.find(output.hash);
|
||||
|
|
Loading…
Add table
Reference in a new issue