From 7e1628d89de4761f508ac07fc0c53a1dd04f6ebe Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 18 Apr 2023 14:56:02 -0700 Subject: [PATCH] chainreg: increase default CLTV value to 80 blocks (~13 hrs) In this commit, we increase the default CTLV value to 80 blocks. Initially this was set to 144 blocks in the early days, but then was lowered to 40 blocks as the lnd implementation matured. By setting this to a higher value, we increase the safety window (MTTR) when it comes to node downtime, and also add some buffer room around time locks which may become more stressed in the future assuming the current mempool load remains persistent. --- chainreg/chainregistry.go | 2 +- docs/release-notes/release-notes-0.16.1.md | 5 +++++ sample-lnd.conf | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chainreg/chainregistry.go b/chainreg/chainregistry.go index f025dbb64..dbe374c4e 100644 --- a/chainreg/chainregistry.go +++ b/chainreg/chainregistry.go @@ -128,7 +128,7 @@ const ( // DefaultBitcoinTimeLockDelta is the default forwarding time lock // delta. - DefaultBitcoinTimeLockDelta = 40 + DefaultBitcoinTimeLockDelta = 80 DefaultLitecoinMinHTLCInMSat = lnwire.MilliSatoshi(1) DefaultLitecoinMinHTLCOutMSat = lnwire.MilliSatoshi(1000) diff --git a/docs/release-notes/release-notes-0.16.1.md b/docs/release-notes/release-notes-0.16.1.md index e9cc58c7e..ceaa1940d 100644 --- a/docs/release-notes/release-notes-0.16.1.md +++ b/docs/release-notes/release-notes-0.16.1.md @@ -1,5 +1,10 @@ # Release Notes +## Routing + +* The default CLTV delta delay [has been increased from 40 blocks to 80 + blocks](https://github.com/lightningnetwork/lnd/pull/7609). + ## Wallet - The logging around transaction broadcast failures [has been improved by always diff --git a/sample-lnd.conf b/sample-lnd.conf index 023f8af2d..674cb4486 100644 --- a/sample-lnd.conf +++ b/sample-lnd.conf @@ -532,7 +532,7 @@ bitcoin.node=btcd ; bitcoin.feerate=1 ; The CLTV delta we will subtract from a forwarded HTLC's timelock value. -; bitcoin.timelockdelta=40 +; bitcoin.timelockdelta=80 ; The seed DNS server(s) to use for initial peer discovery. Must be specified as ; a '[,]' tuple where the SOA address is needed