mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 04:16:18 +02:00
actually repeat the check once every 5 minutes just to be sure.
also because the stream doesn't cover outgoing payments.
This commit is contained in:
@@ -66,9 +66,12 @@ async def invoice_listener(nursery):
|
|||||||
|
|
||||||
async def check_pending_payments():
|
async def check_pending_payments():
|
||||||
await delete_expired_invoices()
|
await delete_expired_invoices()
|
||||||
for payment in await get_payments(complete=False, pending=True, exclude_uncheckable=True):
|
while True:
|
||||||
print(" - checking pending", payment.checking_id)
|
for payment in await get_payments(complete=False, pending=True, exclude_uncheckable=True):
|
||||||
await payment.check_pending()
|
print(" - checking pending", payment.checking_id)
|
||||||
|
await payment.check_pending()
|
||||||
|
|
||||||
|
await trio.sleep(60 * 5)
|
||||||
|
|
||||||
|
|
||||||
async def invoice_callback_dispatcher(checking_id: str):
|
async def invoice_callback_dispatcher(checking_id: str):
|
||||||
|
Reference in New Issue
Block a user