remove STARTUP_INVOICE_EXPIRY_CHECK

This commit is contained in:
callebtc
2022-12-02 17:39:56 +01:00
parent 4e69924c9c
commit 1a98f15d48
4 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -15,7 +15,6 @@ from lnbits.core.crud import (
get_standalone_payment,
)
from lnbits.core.services import redeem_lnurl_withdraw
from lnbits.settings import WALLET, STARTUP_INVOICE_EXPIRY_CHECK
from .core import db
@@ -144,7 +143,7 @@ async def check_pending_payments():
f"Task: pending check finished for {len(pending_payments)} payments (took {time.time() - start_time:0.3f} s)"
)
# we delete expired invoices once upon the first pending check
if incoming and STARTUP_INVOICE_EXPIRY_CHECK:
if incoming:
logger.debug("Task: deleting all expired invoices")
start_time: float = time.time()
await delete_expired_invoices(conn=conn)