From 55f46fb61e71bc002a2cd410ff3e9a625d882cb6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 17 Jun 2022 10:04:28 +0200 Subject: [PATCH] adb fixes for text and stdio GUIs --- electrum/gui/stdio.py | 4 ++-- electrum/gui/text.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/electrum/gui/stdio.py b/electrum/gui/stdio.py index 5b0030ce6..ed5632efd 100644 --- a/electrum/gui/stdio.py +++ b/electrum/gui/stdio.py @@ -97,8 +97,8 @@ class ElectrumGui(BaseElectrumGui): format_str = "%"+"%d"%width[0]+"s"+"%"+"%d"%(width[1]+delta)+"s"+"%" \ + "%d"%(width[2]+delta)+"s"+"%"+"%d"%(width[3]+delta)+"s" messages = [] - - for hist_item in reversed(self.wallet.get_history()): + domain = self.wallet.get_addresses() + for hist_item in reversed(self.wallet.adb.get_history(domain)): if hist_item.tx_mined_status.conf: timestamp = hist_item.tx_mined_status.timestamp try: diff --git a/electrum/gui/text.py b/electrum/gui/text.py index 749661074..aa9fd06ac 100644 --- a/electrum/gui/text.py +++ b/electrum/gui/text.py @@ -122,11 +122,10 @@ class ElectrumGui(BaseElectrumGui): width = [20, 40, 14, 14] delta = (self.maxx - sum(width) - 4)/3 format_str = "%"+"%d"%width[0]+"s"+"%"+"%d"%(width[1]+delta)+"s"+"%"+"%d"%(width[2]+delta)+"s"+"%"+"%d"%(width[3]+delta)+"s" - - b = 0 + domain = self.wallet.get_addresses() self.history = [] self.txid = [] - for hist_item in self.wallet.get_history(): + for hist_item in self.wallet.adb.get_history(domain): if hist_item.tx_mined_status.conf: timestamp = hist_item.tx_mined_status.timestamp try: