1
0

Merge pull request #9620 from accumulator/lightning_pass_invoice_not_bolt11

refactor lnworker.pay_invoice to accept Invoice object instead of bolt11 string
This commit is contained in:
ThomasV
2025-03-18 20:09:01 +01:00
committed by GitHub
8 changed files with 34 additions and 30 deletions

View File

@@ -671,7 +671,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
if not self.question(msg):
return
self.save_pending_invoice(invoice)
coro = self.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msat)
coro = self.wallet.lnworker.pay_invoice(invoice, amount_msat=amount_msat)
#self.window.run_coroutine_from_thread(coro, _('Sending payment'))
self.show_message(_("Please wait..."), getchar=False)