electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 0869e09275c535b43e04a6208bdfe046f2f2b319
parent 4dc74870e1facb410c7b46a49a2f14712c4e58ba
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 17 Feb 2020 14:55:10 +0100

Qt: fix balance column

Diffstat:
Melectrum/gui/qt/history_list.py | 3+--
Melectrum/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 @@ -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 @@ -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)