Skip to content

Commit 5590e4d

Browse files
author
Antoine Riard
committed
Bump default CSV delay on counterparty states to 3 days of blocks
1 parent 2c57878 commit 5590e4d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/util/config.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ pub struct ChannelHandshakeConfig {
4545
/// case of an honest unilateral channel close, which implicitly decrease the economic value of
4646
/// our channel.
4747
///
48-
/// Default value: [`BREAKDOWN_TIMEOUT`], we enforce it as a minimum at channel opening so you
49-
/// can tweak config to ask for more security, not less.
48+
/// Default value: [`BREAKDOWN_TIMEOUT`] * 3, we enforce it as a minimum at channel opening so you
49+
/// can tweak config to ask for more security, not less. The value has been bumped to 3 days of blocks
50+
/// in 0.0.113 as the maturity of LN security infrastructure and incident response human reactivity across
51+
/// the Bitcoin ecosystem, especially in case of needed coordination across layers, are still evaluated as
52+
/// both young.
5053
pub our_to_self_delay: u16,
5154
/// Set to the smallest value HTLC we will accept to process.
5255
///
@@ -156,7 +159,7 @@ impl Default for ChannelHandshakeConfig {
156159
fn default() -> ChannelHandshakeConfig {
157160
ChannelHandshakeConfig {
158161
minimum_depth: 6,
159-
our_to_self_delay: BREAKDOWN_TIMEOUT,
162+
our_to_self_delay: BREAKDOWN_TIMEOUT * 3,
160163
our_htlc_minimum_msat: 1,
161164
max_inbound_htlc_value_in_flight_percent_of_channel: 10,
162165
negotiate_scid_privacy: false,

0 commit comments

Comments
 (0)