Delays

From lightningwiki.net
Jump to: navigation, search

There are several delays built in to Lightning.

Time Lock Delta / CLTV delta[edit]

  • Time Lock Delta is the same as CLTV delta
  • It is a setting in the channel
  • each hop has a time delta, when you include that hop that delta gets added to the final absolute HTLC that the sender sends out
    • if each hop has a 1 block delta, and there are 3 hops, then if we’re at height 0, the cltv expiry the sender uses for that first htlc is 3

Force-close delay / csv_delay[edit]

  • csv_delay is the same as force close delay
  • Set when opening a channel (lnd: remote_csv_delay)
  • Hoe many blocks to wait to get funds back in a unfriendly close