actually wait 2 hours between each checkpending routine.

This commit is contained in:
fiatjaf 2021-03-24 10:11:58 -03:00
parent 6164b9d27e
commit 9cc7052920

View File

@ -78,10 +78,12 @@ async def check_pending_payments():
pending=True,
exclude_uncheckable=True,
):
print(" - checking pending", payment.checking_id)
print(
f" - checking {'in' if payment.is_in else 'out'} pending: {payment.checking_id}"
)
await payment.check_pending()
await trio.sleep(60 * 5)
await trio.sleep(60 * 120)
async def invoice_callback_dispatcher(checking_id: str):