@@ -170,15 +170,17 @@ pub struct Config {
170170 /// used to send pre-flight probes.
171171 pub probing_liquidity_limit_multiplier : u64 ,
172172 /// Configuration options pertaining to Anchor channels, i.e., channels for which the
173- /// `option_anchors_zero_fee_htlc_tx` channel type is negotiated.
173+ /// `option_zero_fee_commitments` or `option_anchors_zero_fee_htlc_tx` channel type is
174+ /// negotiated.
174175 ///
175176 /// Please refer to [`AnchorChannelsConfig`] for further information on Anchor channels.
176177 ///
177178 /// If set to `Some`, we'll try to open new channels with Anchors enabled, i.e., new channels
178- /// will be negotiated with the `option_anchors_zero_fee_htlc_tx` channel type if supported by
179- /// the counterparty. Note that this won't prevent us from opening non-Anchor channels if the
180- /// counterparty doesn't support `option_anchors_zero_fee_htlc_tx`. If set to `None`, new
181- /// channels will be negotiated with the legacy `option_static_remotekey` channel type only.
179+ /// will be negotiated with the `option_zero_fee_commitments` channel type first, then the
180+ /// `option_anchors_zero_fee_htlc_tx` channel type if supported by the counterparty. Note
181+ /// that this won't prevent us from opening non-Anchor channels if the counterparty doesn't
182+ /// support `option_anchors_zero_fee_htlc_tx`. If set to `None`, new channels will be
183+ /// negotiated with the legacy `option_static_remotekey` channel type only.
182184 ///
183185 /// **Note:** If set to `None` *after* some Anchor channels have already been
184186 /// opened, no dedicated emergency on-chain reserve will be maintained for these channels,
@@ -281,7 +283,7 @@ impl Default for HumanReadableNamesConfig {
281283}
282284
283285/// Configuration options pertaining to 'Anchor' channels, i.e., channels for which the
284- /// `option_anchors_zero_fee_htlc_tx` channel type is negotiated.
286+ /// `option_zero_fee_commitments` or ` option_anchors_zero_fee_htlc_tx` channel type is negotiated.
285287///
286288/// Prior to the introduction of Anchor channels, the on-chain fees paying for the transactions
287289/// issued on channel closure were pre-determined and locked-in at the time of the channel
@@ -403,6 +405,8 @@ pub(crate) fn default_user_config(config: &Config) -> UserConfig {
403405 user_config. channel_handshake_limits . force_announced_channel_preference = false ;
404406 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx =
405407 config. anchor_channels_config . is_some ( ) ;
408+ user_config. channel_handshake_config . negotiate_anchor_zero_fee_commitments =
409+ config. anchor_channels_config . is_some ( ) ;
406410 user_config. reject_inbound_splices = false ;
407411
408412 if may_announce_channel ( config) . is_err ( ) {
0 commit comments