@@ -219,7 +219,6 @@ pub struct ChannelHandshakeConfig {
219219 /// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
220220 /// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
221221 /// [`DecodeError::InvalidValue`]: crate::ln::msgs::DecodeError::InvalidValue
222- #[ cfg( test) ]
223222 pub negotiate_anchor_zero_fee_commitments : bool ,
224223
225224 /// The maximum number of HTLCs in-flight from our counterparty towards us at the same time.
@@ -251,7 +250,6 @@ impl Default for ChannelHandshakeConfig {
251250 commit_upfront_shutdown_pubkey : true ,
252251 their_channel_reserve_proportional_millionths : 10_000 ,
253252 negotiate_anchors_zero_fee_htlc_tx : false ,
254- #[ cfg( test) ]
255253 negotiate_anchor_zero_fee_commitments : false ,
256254 our_max_accepted_htlcs : 50 ,
257255 }
@@ -274,7 +272,6 @@ impl Readable for ChannelHandshakeConfig {
274272 commit_upfront_shutdown_pubkey : Readable :: read ( reader) ?,
275273 their_channel_reserve_proportional_millionths : Readable :: read ( reader) ?,
276274 negotiate_anchors_zero_fee_htlc_tx : Readable :: read ( reader) ?,
277- #[ cfg( test) ]
278275 negotiate_anchor_zero_fee_commitments : Readable :: read ( reader) ?,
279276 our_max_accepted_htlcs : Readable :: read ( reader) ?,
280277 } )
@@ -446,16 +443,15 @@ pub enum MaxDustHTLCExposure {
446443 /// thus never experience dust exposure changes due to feerate shifts, resulting in no
447444 /// force-closes due to dust exposure limits), such channels will calculate their maximum
448445 /// dust exposure using a constant feerate of 250 sat/KW when using this variant.
446+ /// See [`ChannelHandshakeConfig::negotiate_anchor_zero_fee_commitments`] to enable such channels.
449447 ///
450448 /// # Backwards Compatibility
451449 /// This variant only became available in LDK 0.0.116, so if you downgrade to a prior version
452450 /// by default this will be set to a [`Self::FixedLimitMsat`] of 5,000,000 msat.
453451 ///
454452 /// [`FeeEstimator`]: crate::chain::chaininterface::FeeEstimator
455453 /// [`ConfirmationTarget::MaximumFeeEstimate`]: crate::chain::chaininterface::ConfirmationTarget::MaximumFeeEstimate
456- //
457- // TODO: link ChannelHandshakeConfig::negotiate_anchor_zero_fee_commitment in zero fee
458- // commitment doc once field is no longer behind cfg[test] flag.
454+ /// [`ChannelHandshakeConfig::negotiate_anchor_zero_fee_commitments`]: ChannelHandshakeConfig::negotiate_anchor_zero_fee_commitments
459455 FeeRateMultiplier ( u64 ) ,
460456}
461457
0 commit comments