show amount in channel opening/closure

This commit is contained in:
ThomasV 2019-02-02 14:47:33 +01:00
parent d9813540ac
commit b265212fe6

View file

@ -284,7 +284,7 @@ class HistoryModel(QAbstractItemModel, Logger):
ln_value = tx_item['amount_msat']/1000 * (-1 if tx_item['direction'] =='sent' else 1)
if txid and txid in transactions:
item = transactions[txid]
item['label'] = tx_item['label']
item['label'] = tx_item['label'] + ' (%s)'%self.parent.format_amount_and_units(tx_item['amount_msat']/1000)
item['value'] = Satoshis(item['value'].value + ln_value)
item['balance_msat'] = tx_item['balance_msat']
else: