aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-12-05 11:53:23 -0500
committerGregory Sanders <gsanders87@gmail.com>2019-12-10 09:27:15 -0500
commite1e1442f3eadc1d139380e71c1b60b86d8d6bdee (patch)
tree89b0df742b494a0327ddfd1c109dbb9b462cf978 /src/wallet
parent1705f1949a14fb1d5213b44b4787bee07681526f (diff)
downloadbitcoin-e1e1442f3eadc1d139380e71c1b60b86d8d6bdee.tar.xz
Activate no-privkey -> ISMINE_WATCH_ONLY behavior for LegacySPKM only
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 647b381b39..2493a5c51e 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -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);