From 8803ee72fca71e16016c63132c43ad56163bb07e Mon Sep 17 00:00:00 2001 From: David Burkett Date: Wed, 13 Apr 2022 16:51:37 -0400 Subject: [PATCH] Checking pegouts when calculating fAllToMe. --- src/qt/transactiondesc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 7e74eab1d..5f6dd33b5 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -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 += "" + tr("From") + ": " + tr("watch-only") + "
";