Skip to content

Commit 6b0b6d0

Browse files
committed
[Qt] Properly set involvesWatchAddress in the transaction record
This prevents "the eye" from watching you when it shouldn't
1 parent 153974a commit 6b0b6d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/qt/transactionfilterproxy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class TransactionFilterProxy : public QSortFilterProxyModel
2424
static const QDateTime MAX_DATE;
2525
/** Type filter bit field (all types) */
2626
static const quint32 ALL_TYPES = 0xFFFFFFFF;
27-
/** Type filter bit field (all types but Obfuscation-SPAM ... enum 0-13 are common) */
28-
static const quint32 COMMON_TYPES = 0x000003FFF;
27+
/** Type filter bit field (all types but Obfuscation-SPAM ... enum 0-14 are common) */
28+
static const quint32 COMMON_TYPES = 0x0005FFFF;
2929

3030
static quint32 TYPE(int type) { return 1 << type; }
3131

src/qt/transactionrecord.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet*
119119
isminetype mine = wallet->IsMine(txout);
120120
if (mine) {
121121
TransactionRecord sub(hash, nTime);
122+
sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
122123
if (fZSpendFromMe) {
123124
sub.type = TransactionRecord::ZerocoinSpend_FromMe;
124125
} else {
@@ -139,6 +140,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet*
139140

140141
// zerocoin spend that was sent to someone else
141142
TransactionRecord sub(hash, nTime);
143+
sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
142144
sub.debit = -txout.nValue;
143145
sub.type = TransactionRecord::ZerocoinSpend;
144146
sub.address = mapValue["zerocoinspend"];

0 commit comments

Comments
 (0)