mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
GUI: TransactionRecord: Turn non-bitcoin fees into entries
This commit is contained in:
parent
ef2f717e67
commit
a582fe03e4
1 changed files with 5 additions and 5 deletions
|
|
@ -144,13 +144,13 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
|
|||
}
|
||||
parts.append(sub);
|
||||
}
|
||||
CAmount nTxFee = GetFeeMap(*wtx.tx)[::policyAsset];
|
||||
if (nTxFee > 0)
|
||||
{
|
||||
|
||||
for (const auto& tx_fee : GetFeeMap(*wtx.tx)) {
|
||||
if (!tx_fee.second) continue;
|
||||
TransactionRecord sub(hash, nTime);
|
||||
sub.type = TransactionRecord::Fee;
|
||||
sub.amount = -nTxFee;
|
||||
sub.asset = ::policyAsset;
|
||||
sub.asset = tx_fee.first;
|
||||
sub.amount = -tx_fee.second;
|
||||
parts.append(sub);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue