tQt: fix balance column - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0869e09275c535b43e04a6208bdfe046f2f2b319 DIR parent 4dc74870e1facb410c7b46a49a2f14712c4e58ba HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 17 Feb 2020 14:55:10 +0100 Qt: fix balance column Diffstat: M electrum/gui/qt/history_list.py | 3 +-- M electrum/wallet.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py t@@ -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: DIR diff --git a/electrum/wallet.py b/electrum/wallet.py t@@ -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)