@@ -4564,12 +4564,12 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
45644564 }
45654565
45664566 let num_htlcs = included_htlcs + addl_htlcs;
4567- let res = commit_tx_fee_sat(context.feerate_per_kw, num_htlcs, funding.get_channel_type()) * 1000;
4567+ let res = SpecTxBuilder {}. commit_tx_fee_sat(context.feerate_per_kw, num_htlcs, funding.get_channel_type()) * 1000;
45684568 #[cfg(any(test, fuzzing))]
45694569 {
45704570 let mut fee = res;
45714571 if fee_spike_buffer_htlc.is_some() {
4572- fee = commit_tx_fee_sat(context.feerate_per_kw, num_htlcs - 1, funding.get_channel_type()) * 1000;
4572+ fee = SpecTxBuilder {}. commit_tx_fee_sat(context.feerate_per_kw, num_htlcs - 1, funding.get_channel_type()) * 1000;
45734573 }
45744574 let total_pending_htlcs = context.pending_inbound_htlcs.len() + context.pending_outbound_htlcs.len()
45754575 + context.holding_cell_htlc_updates.len();
@@ -4661,12 +4661,12 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
46614661 }
46624662
46634663 let num_htlcs = included_htlcs + addl_htlcs;
4664- let res = commit_tx_fee_sat(context.feerate_per_kw, num_htlcs, funding.get_channel_type()) * 1000;
4664+ let res = SpecTxBuilder {}. commit_tx_fee_sat(context.feerate_per_kw, num_htlcs, funding.get_channel_type()) * 1000;
46654665 #[cfg(any(test, fuzzing))]
46664666 if let Some(htlc) = &htlc {
46674667 let mut fee = res;
46684668 if fee_spike_buffer_htlc.is_some() {
4669- fee = commit_tx_fee_sat(context.feerate_per_kw, num_htlcs - 1, funding.get_channel_type()) * 1000;
4669+ fee = SpecTxBuilder {}. commit_tx_fee_sat(context.feerate_per_kw, num_htlcs - 1, funding.get_channel_type()) * 1000;
46704670 }
46714671 let total_pending_htlcs = context.pending_inbound_htlcs.len() + context.pending_outbound_htlcs.len();
46724672 let commitment_tx_info = CommitmentTxInfoCached {
0 commit comments