mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -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:
parent
71fbdb7f40
commit
2d182f77cd
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue