mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
QT: get fee directly from elementsmode transactions
This commit is contained in:
parent
a337b76346
commit
6333166320
2 changed files with 3 additions and 3 deletions
|
|
@ -54,8 +54,8 @@ QString BitcoinUnits::shortName(int unit)
|
|||
{
|
||||
switch(unit)
|
||||
{
|
||||
case uBTC: return QString::fromUtf8("bits");
|
||||
case SAT: return QString("sat");
|
||||
case uBTC: return QString::fromUtf8("L-bits");
|
||||
case SAT: return QString("L-sat");
|
||||
default: return longName(unit);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|||
strHTML += "<b>" + tr("Total credit") + ":</b> " + BitcoinUnits::formatHtmlWithUnit(unit, nValue) + "<br>";
|
||||
}
|
||||
|
||||
CAmount nTxFee = nDebit - valueFor(wtx.tx->GetValueOutMap(), ::policyAsset);
|
||||
CAmount nTxFee = GetFeeMap(*wtx.tx)[::policyAsset];
|
||||
if (nTxFee > 0)
|
||||
strHTML += "<b>" + tr("Transaction fee") + ":</b> " + BitcoinUnits::formatHtmlWithUnit(unit, -nTxFee) + "<br>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue