File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,11 @@ impl<'a> Drop for PersistenceNotifierGuard<'a> {
513
513
514
514
/// The amount of time in blocks we require our counterparty wait to claim their money (ie time
515
515
/// between when we, or our watchtower, must check for them having broadcast a theft transaction).
516
- pub ( crate ) const BREAKDOWN_TIMEOUT : u16 = 6 * 24 ;
516
+ ///
517
+ /// This can be increased (but not decreased) through [`ChannelHandshakeConfig::our_to_self_delay`]
518
+ ///
519
+ /// [`ChannelHandshakeConfig::our_to_self_delay`]: crate::util::config::ChannelHandshakeConfig::our_to_self_delay
520
+ pub const BREAKDOWN_TIMEOUT : u16 = 6 * 24 ;
517
521
/// The amount of time in blocks we're willing to wait to claim money back to us. This matches
518
522
/// the maximum required amount in lnd as of March 2021.
519
523
pub ( crate ) const MAX_LOCAL_BREAKDOWN_TIMEOUT : u16 = 2 * 6 * 24 * 7 ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub struct ChannelHandshakeConfig {
33
33
/// case of an honest unilateral channel close, which implicitly decrease the economic value of
34
34
/// our channel.
35
35
///
36
- /// Default value: BREAKDOWN_TIMEOUT (currently 144), we enforce it as a minimum at channel
36
+ /// Default value: [` BREAKDOWN_TIMEOUT`] (currently 144), we enforce it as a minimum at channel
37
37
/// opening so you can tweak config to ask for more security, not less.
38
38
pub our_to_self_delay : u16 ,
39
39
/// Set to the smallest value HTLC we will accept to process.
You can’t perform that action at this time.
0 commit comments