mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +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);
|
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);
|
TransactionRecord sub(hash, nTime);
|
||||||
sub.type = TransactionRecord::Fee;
|
sub.type = TransactionRecord::Fee;
|
||||||
sub.amount = -nTxFee;
|
sub.asset = tx_fee.first;
|
||||||
sub.asset = ::policyAsset;
|
sub.amount = -tx_fee.second;
|
||||||
parts.append(sub);
|
parts.append(sub);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue