@@ -188,7 +188,8 @@ pub struct Config {
188188 /// used to send pre-flight probes.
189189 pub probing_liquidity_limit_multiplier : u64 ,
190190 /// Configuration options pertaining to Anchor channels, i.e., channels for which the
191- /// `option_anchors_zero_fee_htlc_tx` channel type is negotiated.
191+ /// `option_zero_fee_commitments` or `option_anchors_zero_fee_htlc_tx` channel type is
192+ /// negotiated.
192193 ///
193194 /// Please refer to [`AnchorChannelsConfig`] for further information on Anchor channels.
194195 pub anchor_channels_config : AnchorChannelsConfig ,
@@ -287,7 +288,7 @@ impl Default for HumanReadableNamesConfig {
287288}
288289
289290/// Configuration options pertaining to 'Anchor' channels, i.e., channels for which the
290- /// `option_anchors_zero_fee_htlc_tx` channel type is negotiated.
291+ /// `option_zero_fee_commitments` or ` option_anchors_zero_fee_htlc_tx` channel type is negotiated.
291292///
292293/// Prior to the introduction of Anchor channels, the on-chain fees paying for the transactions
293294/// issued on channel closure were pre-determined and locked-in at the time of the channel
@@ -424,6 +425,8 @@ pub(crate) fn default_user_config(config: &Config) -> UserConfig {
424425 // will mostly be relevant for inbound channels.
425426 let mut user_config = UserConfig :: default ( ) ;
426427 user_config. channel_handshake_limits . force_announced_channel_preference = false ;
428+ user_config. channel_handshake_config . negotiate_anchor_zero_fee_commitments =
429+ config. anchor_channels_config . enable_zero_fee_commitments ;
427430 user_config. reject_inbound_splices = false ;
428431
429432 if may_announce_channel ( config) . is_err ( ) {
0 commit comments