@@ -23,18 +23,21 @@ pub struct ChannelHandshakeConfig {
23
23
///
24
24
/// Default value: 6.
25
25
pub minimum_depth : u32 ,
26
- /// Set to the amount of time we require our counterparty to wait to claim their money.
26
+ /// Set to the number of blocks we require our counterparty to wait to claim their money (ie
27
+ /// the number of blocks we have to punish our counterparty if they broadcast a revoked
28
+ /// transaction).
27
29
///
28
- /// It's one of the main parameter of our security model. We (or one of our watchtowers) MUST
29
- /// be online to check for peer having broadcast a revoked transaction to steal our funds
30
- /// at least once every our_to_self_delay blocks.
30
+ /// This is one of the main parameters of our security model. We (or one of our watchtowers) MUST
31
+ /// be online to check for revoked transactions on-chain at least once every our_to_self_delay
32
+ /// blocks (minus some margin to allow us enough time to broadcast and confirm a transaction,
33
+ /// possibly with time in between to RBF the spending transaction).
31
34
///
32
35
/// Meanwhile, asking for a too high delay, we bother peer to freeze funds for nothing in
33
36
/// case of an honest unilateral channel close, which implicitly decrease the economic value of
34
37
/// our channel.
35
38
///
36
- /// Default value: [`BREAKDOWN_TIMEOUT`] (currently 144) , we enforce it as a minimum at channel
37
- /// opening so you can tweak config to ask for more security, not less.
39
+ /// Default value: [`BREAKDOWN_TIMEOUT`], we enforce it as a minimum at channel opening so you
40
+ /// can tweak config to ask for more security, not less.
38
41
pub our_to_self_delay : u16 ,
39
42
/// Set to the smallest value HTLC we will accept to process.
40
43
///
0 commit comments