mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 13:21:48 +01:00
fix: only re-check pending payments
This commit is contained in:
parent
a300c24dc2
commit
59347448a0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user