From c785eb9ccdcff6244671fd398139394718f32624 Mon Sep 17 00:00:00 2001 From: MrNaif2018 Date: Fri, 13 Jan 2023 01:04:49 +0300 Subject: [PATCH] Return list of tx hashes for partially paid invoices too --- electrum/wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/wallet.py b/electrum/wallet.py index b532a3f09..3571cd481 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -2400,8 +2400,8 @@ class Abstract_Wallet(ABC, Logger, EventListener): d['URI'] = self.get_request_URI(x) # if request was paid onchain, add relevant fields # note: addr is reused when getting paid on LN! so we check for that. - is_paid, conf, tx_hashes = self._is_onchain_invoice_paid(x) - if is_paid and (not self.lnworker or self.lnworker.get_invoice_status(x) != PR_PAID): + _, conf, tx_hashes = self._is_onchain_invoice_paid(x) + if not self.lnworker or self.lnworker.get_invoice_status(x) != PR_PAID: if conf is not None: d['confirmations'] = conf d['tx_hashes'] = tx_hashes