@@ -4174,7 +4174,7 @@ where
4174
4174
{
4175
4175
let remote_commit_tx_fee_msat = if funding.is_outbound() { 0 } else {
4176
4176
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
4177
- self.next_remote_commit_tx_fee_msat(& funding, Some(htlc_candidate), None) // Don't include the extra fee spike buffer HTLC in calculations
4177
+ self.next_remote_commit_tx_fee_msat(funding, Some(htlc_candidate), None) // Don't include the extra fee spike buffer HTLC in calculations
4178
4178
};
4179
4179
if remote_balance_before_fee_msat.saturating_sub(msg.amount_msat) < remote_commit_tx_fee_msat {
4180
4180
return Err(ChannelError::close("Remote HTLC add would not leave enough to pay for fees".to_owned()));
@@ -4187,7 +4187,7 @@ where
4187
4187
if funding.is_outbound() {
4188
4188
// Check that they won't violate our local required channel reserve by adding this HTLC.
4189
4189
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
4190
- let local_commit_tx_fee_msat = self.next_local_commit_tx_fee_msat(& funding, htlc_candidate, None);
4190
+ let local_commit_tx_fee_msat = self.next_local_commit_tx_fee_msat(funding, htlc_candidate, None);
4191
4191
if local_balance_before_fee_msat < funding.counterparty_selected_channel_reserve_satoshis.unwrap() * 1000 + local_commit_tx_fee_msat {
4192
4192
return Err(ChannelError::close("Cannot accept HTLC that would put our balance under counterparty-announced channel reserve value".to_owned()));
4193
4193
}
@@ -4435,7 +4435,7 @@ where
4435
4435
//
4436
4436
// A `None` `HTLCCandidate` is used as in this case because we're already accounting for
4437
4437
// the incoming HTLC as it has been fully committed by both sides.
4438
- let mut remote_fee_cost_incl_stuck_buffer_msat = self.next_remote_commit_tx_fee_msat(& funding, None, Some(()));
4438
+ let mut remote_fee_cost_incl_stuck_buffer_msat = self.next_remote_commit_tx_fee_msat(funding, None, Some(()));
4439
4439
if !funding.get_channel_type().supports_anchors_zero_fee_htlc_tx() {
4440
4440
remote_fee_cost_incl_stuck_buffer_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
4441
4441
}
@@ -5004,9 +5004,9 @@ where
5004
5004
}
5005
5005
5006
5006
let htlc_above_dust = HTLCCandidate::new(real_dust_limit_timeout_sat * 1000, HTLCInitiator::LocalOffered);
5007
- let mut max_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(& funding, htlc_above_dust, Some(()));
5007
+ let mut max_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(funding, htlc_above_dust, Some(()));
5008
5008
let htlc_dust = HTLCCandidate::new(real_dust_limit_timeout_sat * 1000 - 1, HTLCInitiator::LocalOffered);
5009
- let mut min_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(& funding, htlc_dust, Some(()));
5009
+ let mut min_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(funding, htlc_dust, Some(()));
5010
5010
if !funding.get_channel_type().supports_anchors_zero_fee_htlc_tx() {
5011
5011
max_reserved_commit_tx_fee_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
5012
5012
min_reserved_commit_tx_fee_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
@@ -5035,7 +5035,7 @@ where
5035
5035
}
5036
5036
5037
5037
let htlc_above_dust = HTLCCandidate::new(real_dust_limit_success_sat * 1000, HTLCInitiator::LocalOffered);
5038
- let max_reserved_commit_tx_fee_msat = context.next_remote_commit_tx_fee_msat(& funding, Some(htlc_above_dust), None);
5038
+ let max_reserved_commit_tx_fee_msat = context.next_remote_commit_tx_fee_msat(funding, Some(htlc_above_dust), None);
5039
5039
5040
5040
let holder_selected_chan_reserve_msat = funding.holder_selected_channel_reserve_satoshis * 1000;
5041
5041
if remote_balance_before_fee_msat < max_reserved_commit_tx_fee_msat + holder_selected_chan_reserve_msat {
0 commit comments