@@ -219,7 +219,6 @@ pub struct ChannelHandshakeConfig {
219
219
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
220
220
/// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
221
221
/// [`DecodeError::InvalidValue`]: crate::ln::msgs::DecodeError::InvalidValue
222
- #[ cfg( test) ]
223
222
pub negotiate_anchor_zero_fee_commitments : bool ,
224
223
225
224
/// The maximum number of HTLCs in-flight from our counterparty towards us at the same time.
@@ -251,7 +250,6 @@ impl Default for ChannelHandshakeConfig {
251
250
commit_upfront_shutdown_pubkey : true ,
252
251
their_channel_reserve_proportional_millionths : 10_000 ,
253
252
negotiate_anchors_zero_fee_htlc_tx : false ,
254
- #[ cfg( test) ]
255
253
negotiate_anchor_zero_fee_commitments : false ,
256
254
our_max_accepted_htlcs : 50 ,
257
255
}
@@ -274,7 +272,6 @@ impl Readable for ChannelHandshakeConfig {
274
272
commit_upfront_shutdown_pubkey : Readable :: read ( reader) ?,
275
273
their_channel_reserve_proportional_millionths : Readable :: read ( reader) ?,
276
274
negotiate_anchors_zero_fee_htlc_tx : Readable :: read ( reader) ?,
277
- #[ cfg( test) ]
278
275
negotiate_anchor_zero_fee_commitments : Readable :: read ( reader) ?,
279
276
our_max_accepted_htlcs : Readable :: read ( reader) ?,
280
277
} )
@@ -446,16 +443,15 @@ pub enum MaxDustHTLCExposure {
446
443
/// thus never experience dust exposure changes due to feerate shifts, resulting in no
447
444
/// force-closes due to dust exposure limits), such channels will calculate their maximum
448
445
/// 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.
449
447
///
450
448
/// # Backwards Compatibility
451
449
/// This variant only became available in LDK 0.0.116, so if you downgrade to a prior version
452
450
/// by default this will be set to a [`Self::FixedLimitMsat`] of 5,000,000 msat.
453
451
///
454
452
/// [`FeeEstimator`]: crate::chain::chaininterface::FeeEstimator
455
453
/// [`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
459
455
FeeRateMultiplier ( u64 ) ,
460
456
}
461
457
0 commit comments