From f384c5c366da9ee9698d0caa5b897d739b9593b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 19 Jul 2023 13:13:46 +0200 Subject: [PATCH] Increase default invoice expiry to 1 hour (#1825) * more reasonable default expiry 600 = 10 minutes which is a pretty short amount of time, for example when using lnbits fundingsource inside lnbits itself it would fail if you do a submarine swap or anything involved with hold invoices i think 3600 = 1 hour should not make a difference in performance and is a way more reasonable expiry * change default in .env.example --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> --- .env.example | 2 +- lnbits/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7b6e852e..47558d4e 100644 --- a/.env.example +++ b/.env.example @@ -77,7 +77,7 @@ LNBITS_BACKEND_WALLET_CLASS=VoidWallet # just so you can see the UI before dealing with this file. # Invoice expiry for LND, CLN, Eclair, LNbits funding sources -LIGHTNING_INVOICE_EXPIRY=600 +LIGHTNING_INVOICE_EXPIRY=3600 # Set one of these blocks depending on the wallet kind you chose above: diff --git a/lnbits/settings.py b/lnbits/settings.py index a63d8021..645f8adc 100644 --- a/lnbits/settings.py +++ b/lnbits/settings.py @@ -199,7 +199,7 @@ class BoltzExtensionSettings(LNbitsSettings): class LightningSettings(LNbitsSettings): - lightning_invoice_expiry: int = Field(default=600) + lightning_invoice_expiry: int = Field(default=3600) class FundingSourcesSettings(