add explicit is_lightning check before potentially calling lnworker.get_invoice_status in wallet.export_request
This commit is contained in:
@@ -2401,7 +2401,7 @@ class Abstract_Wallet(ABC, Logger, EventListener):
|
|||||||
# 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.
|
||||||
_, conf, tx_hashes = self._is_onchain_invoice_paid(x)
|
_, conf, tx_hashes = self._is_onchain_invoice_paid(x)
|
||||||
if not self.lnworker or self.lnworker.get_invoice_status(x) != PR_PAID:
|
if not is_lightning or 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
|
||||||
|
|||||||
Reference in New Issue
Block a user