mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
GUI: Ignore explicit fee output when determining if a transaction is send-to-self
This commit is contained in:
parent
1655947c15
commit
0aeab14f75
1 changed files with 7 additions and 2 deletions
|
|
@ -85,8 +85,13 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
|
|||
}
|
||||
|
||||
isminetype fAllToMe = ISMINE_SPENDABLE;
|
||||
for (const isminetype mine : wtx.txout_is_mine)
|
||||
{
|
||||
for (unsigned int i = 0; i < wtx.txout_is_mine.size(); ++i) {
|
||||
const isminetype mine = wtx.txout_is_mine[i];
|
||||
const CTxOut txout = wtx.tx->vout[i];
|
||||
if (txout.IsFee()) {
|
||||
// explicit fee; ignore
|
||||
continue;
|
||||
}
|
||||
if(mine & ISMINE_WATCH_ONLY) involvesWatchAddress = true;
|
||||
if(fAllToMe > mine) fAllToMe = mine;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue