Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiondesc.cpp
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | if (wtx.is_coinbase && nCredit == Amount::zero()) { | ||||
BitcoinUnits::formatHtmlWithUnit(unit, -1 * nValue) + | BitcoinUnits::formatHtmlWithUnit(unit, -1 * nValue) + | ||||
"<br>"; | "<br>"; | ||||
strHTML += "<b>" + tr("Total credit") + ":</b> " + | strHTML += "<b>" + tr("Total credit") + ":</b> " + | ||||
BitcoinUnits::formatHtmlWithUnit(unit, nValue) + | BitcoinUnits::formatHtmlWithUnit(unit, nValue) + | ||||
"<br>"; | "<br>"; | ||||
} | } | ||||
Amount nTxFee = nDebit - wtx.tx->GetValueOut(); | Amount nTxFee = nDebit - wtx.tx->GetValueOut(); | ||||
if (nTxFee > Amount::zero()) | if (nTxFee > Amount::zero()) { | ||||
strHTML += "<b>" + tr("Transaction fee") + ":</b> " + | strHTML += "<b>" + tr("Transaction fee") + ":</b> " + | ||||
BitcoinUnits::formatHtmlWithUnit(unit, -1 * nTxFee) + | BitcoinUnits::formatHtmlWithUnit(unit, -1 * nTxFee) + | ||||
"<br>"; | "<br>"; | ||||
} | |||||
} else { | } else { | ||||
// | // | ||||
// Mixed debit transaction | // Mixed debit transaction | ||||
// | // | ||||
auto mine = wtx.txin_is_mine.begin(); | auto mine = wtx.txin_is_mine.begin(); | ||||
for (const CTxIn &txin : wtx.tx->vin) { | for (const CTxIn &txin : wtx.tx->vin) { | ||||
if (*(mine++)) { | if (*(mine++)) { | ||||
strHTML += "<b>" + tr("Debit") + ":</b> " + | strHTML += "<b>" + tr("Debit") + ":</b> " + | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |