1
0

Let the GUI compute the balance displayed in history.

Since Qt groups swap transactions, the displayed balance
was sometimes incorrect.
This commit is contained in:
ThomasV
2023-09-14 15:24:17 +02:00
parent 9df8bb61a5
commit d03c77837f
5 changed files with 16 additions and 13 deletions

View File

@@ -164,9 +164,10 @@ class ElectrumGui(BaseElectrumGui, EventListener):
domain = self.wallet.get_addresses()
self.history = []
self.txid = []
balance_sat = 0
for item in self.wallet.get_full_history().values():
amount_sat = item['value'].value
balance_sat = item['balance'].value
balance_sat += amount_sat
if item.get('lightning'):
timestamp = item['timestamp']
label = self.wallet.get_label_for_rhash(item['payment_hash'])