Checking pegouts when calculating fAllToMe.
This commit is contained in:
parent
82ab2849c9
commit
8803ee72fc
@ -225,13 +225,16 @@ QString TransactionDesc::toHTML_Amounts(interfaces::Wallet& wallet, const interf
|
||||
for (const isminetype mine : wtx.txin_is_mine) {
|
||||
if (fAllFromMe > mine) fAllFromMe = mine;
|
||||
}
|
||||
// MW: TODO - Pegouts?
|
||||
|
||||
isminetype fAllToMe = ISMINE_SPENDABLE;
|
||||
for (const isminetype mine : wtx.txout_is_mine) {
|
||||
if (fAllToMe > mine) fAllToMe = mine;
|
||||
}
|
||||
|
||||
for (const isminetype mine : wtx.pegout_is_mine) {
|
||||
if (fAllToMe > mine) fAllToMe = mine;
|
||||
}
|
||||
|
||||
if (fAllFromMe) {
|
||||
if (fAllFromMe & ISMINE_WATCH_ONLY)
|
||||
strHTML += "<b>" + tr("From") + ":</b> " + tr("watch-only") + "<br>";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user