electrum

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

commit a20317fe2ad2b842c2580bbf36c82f2a0696ade4
parent 7b5869c7bcd058ab8b8b1b2428c288e9f658863d
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 28 Oct 2019 21:17:20 +0100

fix #5726

Diffstat:
Melectrum/gui/kivy/uix/screens.py | 3++-
Melectrum/gui/qt/invoice_list.py | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py @@ -222,7 +222,8 @@ class SendScreen(CScreen): self.set_URI(self.payment_request_queued) self.payment_request_queued = None _list = self.app.wallet.get_invoices() - _list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in self.app.wallet.lnworker.logs] + lnworker_logs = self.app.wallet.lnworker.logs if self.app.wallet.lnworker else {} + _list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in lnworker_logs] payments_container = self.screen.ids.payments_container payments_container.data = [self.get_card(item) for item in _list] diff --git a/electrum/gui/qt/invoice_list.py b/electrum/gui/qt/invoice_list.py @@ -94,7 +94,8 @@ class InvoiceList(MyTreeView): def update(self): _list = self.parent.wallet.get_invoices() # filter out paid invoices unless we have the log - _list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in self.parent.wallet.lnworker.logs] + lnworker_logs = self.parent.wallet.lnworker.logs if self.parent.wallet.lnworker else {} + _list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in lnworker_logs] self.model().clear() self.update_headers(self.__class__.headers) for idx, item in enumerate(_list):