diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-01-07 09:37:43 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2023-06-23 02:06:32 +0000 |
commit | 2d182f77cd8100395cf47a721bd01dc8620c9718 (patch) | |
tree | 9962689570b2d4c48d2c826f8a2bb35c6070127f | |
parent | 71fbdb7f403e673877be94a79cd4c6b13b0bbcd6 (diff) |
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
-rw-r--r-- | src/qt/transactionrecord.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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> 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 // |