0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

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 2019-01-07 09:37:43 +00:00
parent 71fbdb7f40
commit 2d182f77cd

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
//