From 59347448a0264dec8fff3543aaf6a1b0e7157b41 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 28 Feb 2025 12:48:34 +0200 Subject: [PATCH] fix: only re-check pending payments --- lnbits/core/services/payments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/core/services/payments.py b/lnbits/core/services/payments.py index a6bea498f..012e86570 100644 --- a/lnbits/core/services/payments.py +++ b/lnbits/core/services/payments.py @@ -203,7 +203,8 @@ async def update_pending_payments( payments: list[Payment], delay: Optional[float] = None ) -> list[Payment]: for payment in payments: - await update_pending_payment(payment) + if payment.pending: + await update_pending_payment(payment) if delay is not None: await asyncio.sleep(delay) # to avoid complete blocking return payments