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

@@ -115,8 +115,10 @@ class ElectrumGui(BaseElectrumGui, EventListener):
time_str = 'unconfirmed'
label = self.wallet.get_label_for_txid(hist_item.txid)
messages.append(format_str % (time_str, label, format_satoshis(delta, whitespaces=True),
format_satoshis(hist_item.balance, whitespaces=True)))
messages.append(format_str % (
time_str, label,
format_satoshis(hist_item.delta, whitespaces=True),
format_satoshis(hist_item.balance, whitespaces=True)))
self.print_list(messages[::-1], format_str%(_("Date"), _("Description"), _("Amount"), _("Balance")))