Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle hodl invoices asynchronously tasks.py
- Modified the on_invoice_paid function to call pay_invoice asynchronously using asyncio.create_task. - Added a new function pay_invoice_in_background to handle the asynchronous payment processing and exception handling. - Ensured that the main event loop remains responsive even when encountering hodl invoices by running pay_invoice in the background.
- Loading branch information