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
This commit is contained in:
Luke Dashjr committed 2023-06-23 02:06:32 +00:00
1 parent 71fbdb7f40
commit 2d182f77cd
1 file changed
+6 -4
+6 -4
View File
@@ -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
//