diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2019-12-05 11:53:23 -0500 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2019-12-10 09:27:15 -0500 |
commit | e1e1442f3eadc1d139380e71c1b60b86d8d6bdee (patch) | |
tree | 89b0df742b494a0327ddfd1c109dbb9b462cf978 /src | |
parent | 1705f1949a14fb1d5213b44b4787bee07681526f (diff) | |
download | bitcoin-e1e1442f3eadc1d139380e71c1b60b86d8d6bdee.tar.xz |
Activate no-privkey -> ISMINE_WATCH_ONLY behavior for LegacySPKM only
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
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); |