Skip to content

Commit 2d182f7

Browse files
committed
Bugfix: Ignore ischange flag when we're not the sender
If we didn't send it, it can't possibly be change, even if that's the key's purpose
1 parent 71fbdb7 commit 2d182f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/qt/transactionrecord.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
6666
{
6767
const CTxOut& txout = wtx.tx->vout[i];
6868

69-
if (wtx.txout_is_change[i]) {
70-
continue;
71-
}
72-
7369
if (fAllFromMe) {
70+
// Change is only really possible if we're the sender
71+
// Otherwise, someone just sent bitcoins to a change address, which should be shown
72+
if (wtx.txout_is_change[i]) {
73+
continue;
74+
}
75+
7476
//
7577
// Debit
7678
//

0 commit comments

Comments
 (0)