lnd: update defaultMaxLocalCSVDelay

Make sure our default local csv delay maximum is symetric
compared  to the remote default csv maximum.
This commit is contained in:
ziggie 2023-06-21 11:47:16 +02:00
parent d0ca48a435
commit 39f9673bc7
No known key found for this signature in database
GPG key ID: 1AFF9C4DCED6D666
2 changed files with 5 additions and 4 deletions

View file

@ -175,9 +175,10 @@ const (
defaultRemoteMaxHtlcs = 483
// defaultMaxLocalCSVDelay is the maximum delay we accept on our
// commitment output.
// TODO(halseth): find a more scientific choice of value.
defaultMaxLocalCSVDelay = 10000
// commitment output. The local csv delay maximum is now equal to
// the remote csv delay maximum we require for the remote commitment
// transaction.
defaultMaxLocalCSVDelay = 2016
// defaultChannelCommitInterval is the default maximum time between
// receiving a channel state update and signing a new commitment.

View file

@ -59,7 +59,7 @@ const (
// defaultMaxLocalCSVDelay is the maximum delay we accept on our
// commitment output.
defaultMaxLocalCSVDelay = 10000
defaultMaxLocalCSVDelay = 2016
)
var (