@@ -4184,7 +4184,7 @@ where
4184
4184
{
4185
4185
let remote_commit_tx_fee_msat = if funding.is_outbound() { 0 } else {
4186
4186
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
4187
- self.next_remote_commit_tx_fee_msat(& funding, Some(htlc_candidate), None) // Don't include the extra fee spike buffer HTLC in calculations
4187
+ self.next_remote_commit_tx_fee_msat(funding, Some(htlc_candidate), None) // Don't include the extra fee spike buffer HTLC in calculations
4188
4188
};
4189
4189
if remote_balance_before_fee_msat.saturating_sub(msg.amount_msat) < remote_commit_tx_fee_msat {
4190
4190
return Err(ChannelError::close("Remote HTLC add would not leave enough to pay for fees".to_owned()));
@@ -4197,7 +4197,7 @@ where
4197
4197
if funding.is_outbound() {
4198
4198
// Check that they won't violate our local required channel reserve by adding this HTLC.
4199
4199
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
4200
- let local_commit_tx_fee_msat = self.next_local_commit_tx_fee_msat(& funding, htlc_candidate, None);
4200
+ let local_commit_tx_fee_msat = self.next_local_commit_tx_fee_msat(funding, htlc_candidate, None);
4201
4201
if local_balance_before_fee_msat < funding.counterparty_selected_channel_reserve_satoshis.unwrap() * 1000 + local_commit_tx_fee_msat {
4202
4202
return Err(ChannelError::close("Cannot accept HTLC that would put our balance under counterparty-announced channel reserve value".to_owned()));
4203
4203
}
@@ -4445,7 +4445,7 @@ where
4445
4445
//
4446
4446
// A `None` `HTLCCandidate` is used as in this case because we're already accounting for
4447
4447
// the incoming HTLC as it has been fully committed by both sides.
4448
- let mut remote_fee_cost_incl_stuck_buffer_msat = self.next_remote_commit_tx_fee_msat(& funding, None, Some(()));
4448
+ let mut remote_fee_cost_incl_stuck_buffer_msat = self.next_remote_commit_tx_fee_msat(funding, None, Some(()));
4449
4449
if !funding.get_channel_type().supports_anchors_zero_fee_htlc_tx() {
4450
4450
remote_fee_cost_incl_stuck_buffer_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
4451
4451
}
@@ -5014,9 +5014,9 @@ where
5014
5014
}
5015
5015
5016
5016
let htlc_above_dust = HTLCCandidate::new(real_dust_limit_timeout_sat * 1000, HTLCInitiator::LocalOffered);
5017
- let mut max_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(& funding, htlc_above_dust, Some(()));
5017
+ let mut max_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(funding, htlc_above_dust, Some(()));
5018
5018
let htlc_dust = HTLCCandidate::new(real_dust_limit_timeout_sat * 1000 - 1, HTLCInitiator::LocalOffered);
5019
- let mut min_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(& funding, htlc_dust, Some(()));
5019
+ let mut min_reserved_commit_tx_fee_msat = context.next_local_commit_tx_fee_msat(funding, htlc_dust, Some(()));
5020
5020
if !funding.get_channel_type().supports_anchors_zero_fee_htlc_tx() {
5021
5021
max_reserved_commit_tx_fee_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
5022
5022
min_reserved_commit_tx_fee_msat *= FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
@@ -5045,7 +5045,7 @@ where
5045
5045
}
5046
5046
5047
5047
let htlc_above_dust = HTLCCandidate::new(real_dust_limit_success_sat * 1000, HTLCInitiator::LocalOffered);
5048
- let max_reserved_commit_tx_fee_msat = context.next_remote_commit_tx_fee_msat(& funding, Some(htlc_above_dust), None);
5048
+ let max_reserved_commit_tx_fee_msat = context.next_remote_commit_tx_fee_msat(funding, Some(htlc_above_dust), None);
5049
5049
5050
5050
let holder_selected_chan_reserve_msat = funding.holder_selected_channel_reserve_satoshis * 1000;
5051
5051
if remote_balance_before_fee_msat < max_reserved_commit_tx_fee_msat + holder_selected_chan_reserve_msat {
0 commit comments