Skip to content

Commit

Permalink
Bump default CSV delay on counterparty states to 3 days of blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Riard committed Nov 30, 2022
1 parent 2c57878 commit 5590e4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lightning/src/util/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ pub struct ChannelHandshakeConfig {
/// case of an honest unilateral channel close, which implicitly decrease the economic value of
/// our channel.
///
/// Default value: [`BREAKDOWN_TIMEOUT`], we enforce it as a minimum at channel opening so you
/// can tweak config to ask for more security, not less.
/// Default value: [`BREAKDOWN_TIMEOUT`] * 3, we enforce it as a minimum at channel opening so you
/// can tweak config to ask for more security, not less. The value has been bumped to 3 days of blocks
/// in 0.0.113 as the maturity of LN security infrastructure and incident response human reactivity across
/// the Bitcoin ecosystem, especially in case of needed coordination across layers, are still evaluated as
/// both young.
pub our_to_self_delay: u16,
/// Set to the smallest value HTLC we will accept to process.
///
Expand Down Expand Up @@ -156,7 +159,7 @@ impl Default for ChannelHandshakeConfig {
fn default() -> ChannelHandshakeConfig {
ChannelHandshakeConfig {
minimum_depth: 6,
our_to_self_delay: BREAKDOWN_TIMEOUT,
our_to_self_delay: BREAKDOWN_TIMEOUT * 3,
our_htlc_minimum_msat: 1,
max_inbound_htlc_value_in_flight_percent_of_channel: 10,
negotiate_scid_privacy: false,
Expand Down

0 comments on commit 5590e4d

Please sign in to comment.