From 0869e09275c535b43e04a6208bdfe046f2f2b319 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 17 Feb 2020 14:55:10 +0100 Subject: [PATCH] Qt: fix balance column --- electrum/gui/qt/history_list.py | 3 +-- electrum/wallet.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py index 010450f39..f317a22b0 100644 --- a/electrum/gui/qt/history_list.py +++ b/electrum/gui/qt/history_list.py @@ -174,8 +174,7 @@ class HistoryModel(QAbstractItemModel, Logger): (tx_item['bc_value'].value if 'bc_value' in tx_item else 0)\ + (tx_item['ln_value'].value if 'ln_value' in tx_item else 0), HistoryColumns.BALANCE: - (tx_item['balance'].value if 'balance' in tx_item else 0)\ - + (tx_item['balance_msat']//1000 if 'balance_msat'in tx_item else 0), + (tx_item['balance'].value if 'balance' in tx_item else 0), HistoryColumns.FIAT_VALUE: tx_item['fiat_value'].value if 'fiat_value' in tx_item else None, HistoryColumns.FIAT_ACQ_PRICE: diff --git a/electrum/wallet.py b/electrum/wallet.py index a60860e05..65e2f031a 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -741,7 +741,6 @@ class Abstract_Wallet(AddressSynchronizer, ABC): item = transactions[txid] item['label'] = tx_item['label'] item['ln_value'] = Satoshis(ln_value) - item['ln_balance_msat'] = tx_item['balance_msat'] else: tx_item['lightning'] = True tx_item['ln_value'] = Satoshis(ln_value)