|
@ -360,14 +360,13 @@ class SendScreen(CScreen, Logger): |
|
|
do_pay(False) |
|
|
do_pay(False) |
|
|
|
|
|
|
|
|
def _do_pay_lightning(self, invoice: LNInvoice, pw) -> None: |
|
|
def _do_pay_lightning(self, invoice: LNInvoice, pw) -> None: |
|
|
|
|
|
def pay_thread(): |
|
|
|
|
|
try: |
|
|
|
|
|
self.app.wallet.lnworker.pay(invoice.invoice, attempts=10) |
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
self.app.show_error(repr(e)) |
|
|
self.save_invoice(invoice) |
|
|
self.save_invoice(invoice) |
|
|
threading.Thread( |
|
|
threading.Thread(target=pay_thread).start() |
|
|
target=self.app.wallet.lnworker.pay, |
|
|
|
|
|
args=(invoice.invoice,), |
|
|
|
|
|
kwargs={ |
|
|
|
|
|
'attempts': 10, |
|
|
|
|
|
}, |
|
|
|
|
|
).start() |
|
|
|
|
|
|
|
|
|
|
|
def _do_pay_onchain(self, invoice: OnchainInvoice, rbf: bool) -> None: |
|
|
def _do_pay_onchain(self, invoice: OnchainInvoice, rbf: bool) -> None: |
|
|
# make unsigned transaction |
|
|
# make unsigned transaction |
|
|