refactor lnworker.pay_invoice to accept Invoice object instead of bolt11 string
rename lnworker._check_invoice to lnworker._check_bolt11_invoice
This commit is contained in:
@@ -670,7 +670,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)
|
||||
|
||||
Reference in New Issue
Block a user