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