From 95e98501ec3e000c6b3c710d5809c5d04839d2b4 Mon Sep 17 00:00:00 2001 From: k00b Date: Wed, 5 Feb 2025 12:47:35 -0600 Subject: [PATCH] reduce max incoming invoice expiration and expiration buffer --- wallets/wrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/wrap.js b/wallets/wrap.js index 2ae0f264c..a5079a10e 100644 --- a/wallets/wrap.js +++ b/wallets/wrap.js @@ -4,8 +4,8 @@ import { toBigInt, toPositiveBigInt, toPositiveNumber } from '@/lib/format' const MIN_OUTGOING_MSATS = BigInt(700) // the minimum msats we'll allow for the outgoing invoice const MAX_OUTGOING_MSATS = BigInt(700_000_000) // the maximum msats we'll allow for the outgoing invoice -const MAX_EXPIRATION_INCOMING_MSECS = 900_000 // the maximum expiration time we'll allow for the incoming invoice -const INCOMING_EXPIRATION_BUFFER_MSECS = 300_000 // the buffer enforce for the incoming invoice expiration +const MAX_EXPIRATION_INCOMING_MSECS = 600_000 // the maximum expiration time we'll allow for the incoming invoice +const INCOMING_EXPIRATION_BUFFER_MSECS = 120_000 // the buffer enforce for the incoming invoice expiration const MAX_OUTGOING_CLTV_DELTA = 1000 // the maximum cltv delta we'll allow for the outgoing invoice export const MIN_SETTLEMENT_CLTV_DELTA = 80 // the minimum blocks we'll leave for settling the incoming invoice const FEE_ESTIMATE_TIMEOUT_SECS = 5 // the timeout for the fee estimate request