From 5cb31b59e9e8004db6141fbc8314477b5c268f33 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 30 May 2025 15:06:17 +0300 Subject: [PATCH] fix: notify for successful invoices --- lnbits/tasks.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lnbits/tasks.py b/lnbits/tasks.py index 482e038d4..f1df19249 100644 --- a/lnbits/tasks.py +++ b/lnbits/tasks.py @@ -209,12 +209,6 @@ async def invoice_callback_dispatcher(checking_id: str, is_internal: bool = Fals return status = await payment.check_status() - if not status.success: - logger.warning( - f"Invoice '{checking_id}' is not settled yet, status: {status}. " - "Should never got here!" - ) - return payment.fee = status.fee_msat or 0 # only overwrite preimage if status.preimage provides it payment.preimage = status.preimage or payment.preimage