Browse Source

Return list of tx hashes for partially paid invoices too

master
MrNaif2018 3 years ago
parent
commit
c785eb9ccd
No known key found for this signature in database
GPG Key ID: 5CDE50436C3DB40C
  1. 4
      electrum/wallet.py

4
electrum/wallet.py

@ -2400,8 +2400,8 @@ class Abstract_Wallet(ABC, Logger, EventListener):
d['URI'] = self.get_request_URI(x) d['URI'] = self.get_request_URI(x)
# if request was paid onchain, add relevant fields # if request was paid onchain, add relevant fields
# note: addr is reused when getting paid on LN! so we check for that. # 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) _, 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): if not self.lnworker or self.lnworker.get_invoice_status(x) != PR_PAID:
if conf is not None: if conf is not None:
d['confirmations'] = conf d['confirmations'] = conf
d['tx_hashes'] = tx_hashes d['tx_hashes'] = tx_hashes

Loading…
Cancel
Save