You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -5221,11 +5203,7 @@ impl<SP: Deref> FundedChannel<SP> where
5221
5203
{
5222
5204
let remote_commit_tx_fee_msat = if self.context.is_outbound() { 0 } else {
5223
5205
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
5224
-
self.context.next_remote_commit_tx_fee_msat(
5225
-
#[cfg(any(test, fuzzing))]
5226
-
&self.funding,
5227
-
Some(htlc_candidate), None, // Don't include the extra fee spike buffer HTLC in calculations
5228
-
)
5206
+
self.context.next_remote_commit_tx_fee_msat(&self.funding, Some(htlc_candidate), None) // Don't include the extra fee spike buffer HTLC in calculations
5229
5207
};
5230
5208
let anchor_outputs_value_msat = if !self.context.is_outbound() && self.context.get_channel_type().supports_anchors_zero_fee_htlc_tx() {
5231
5209
ANCHOR_OUTPUT_VALUE_SATOSHI * 2 * 1000
@@ -5248,11 +5226,7 @@ impl<SP: Deref> FundedChannel<SP> where
5248
5226
if self.context.is_outbound() {
5249
5227
// Check that they won't violate our local required channel reserve by adding this HTLC.
5250
5228
let htlc_candidate = HTLCCandidate::new(msg.amount_msat, HTLCInitiator::RemoteOffered);
5251
-
let local_commit_tx_fee_msat = self.context.next_local_commit_tx_fee_msat(
5252
-
#[cfg(any(test, fuzzing))]
5253
-
&self.funding,
5254
-
htlc_candidate, None,
5255
-
);
5229
+
let local_commit_tx_fee_msat = self.context.next_local_commit_tx_fee_msat(&self.funding, htlc_candidate, None);
0 commit comments