From 2d182f77cd8100395cf47a721bd01dc8620c9718 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Mon, 7 Jan 2019 09:37:43 +0000 Subject: 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 --- src/qt/transactionrecord.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/qt') diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 8a373451eb..85b7e70187 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -66,11 +66,13 @@ QList TransactionRecord::decomposeTransaction(const interface { const CTxOut& txout = wtx.tx->vout[i]; - if (wtx.txout_is_change[i]) { - continue; - } - if (fAllFromMe) { + // Change is only really possible if we're the sender + // Otherwise, someone just sent bitcoins to a change address, which should be shown + if (wtx.txout_is_change[i]) { + continue; + } + // // Debit // -- cgit v1.2.3