mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
fundingmanager: define min and maxRemoteDelay
This commit defines minRemoteDelay and maxRemoteDelay, which is the extremes of the CSV delay we will require the remote to use for its commitment transaction. The actual delay we will require will be somewhere between these values, depending on channel size.
This commit is contained in:
parent
53b0ee3765
commit
3edc1a7456
@ -32,8 +32,6 @@ const (
|
||||
// TODO(roasbeef): tune
|
||||
msgBufferSize = 50
|
||||
|
||||
defaultCsvDelay = 4
|
||||
|
||||
// maxFundingAmount is a soft-limit of the maximum channel size
|
||||
// accepted within the Lightning Protocol Currently. This limit is
|
||||
// currently defined in BOLT-0002, and serves as an initial
|
||||
@ -43,6 +41,13 @@ const (
|
||||
// TODO(roasbeef): add command line param to modify
|
||||
maxFundingAmount = btcutil.Amount(1 << 24)
|
||||
|
||||
// minRemoteDelay and maxRemoteDelay is the extremes of the CSV delay
|
||||
// we will require the remote to use for its commitment transaction.
|
||||
// The actual delay we will require will be somewhere between these
|
||||
// values, depending on channel size.
|
||||
minRemoteDelay = 144
|
||||
maxRemoteDelay = 2016
|
||||
|
||||
// maxWaitNumBlocksFundingConf is the maximum number of blocks to wait
|
||||
// for the funding transaction to be confirmed before forgetting about
|
||||
// the channel. 288 blocks is ~48 hrs
|
||||
|
Loading…
Reference in New Issue
Block a user