mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-12 07:11:17 +02: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:
@ -66,11 +66,13 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
|
|||||||
{
|
{
|
||||||
const CTxOut& txout = wtx.tx->vout[i];
|
const CTxOut& txout = wtx.tx->vout[i];
|
||||||
|
|
||||||
if (wtx.txout_is_change[i]) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fAllFromMe) {
|
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
|
// Debit
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user