@@ -4564,12 +4564,12 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4564
4564
}
4565
4565
4566
4566
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;
4568
4568
#[cfg(any(test, fuzzing))]
4569
4569
{
4570
4570
let mut fee = res;
4571
4571
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;
4573
4573
}
4574
4574
let total_pending_htlcs = context.pending_inbound_htlcs.len() + context.pending_outbound_htlcs.len()
4575
4575
+ context.holding_cell_htlc_updates.len();
@@ -4661,12 +4661,12 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4661
4661
}
4662
4662
4663
4663
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;
4665
4665
#[cfg(any(test, fuzzing))]
4666
4666
if let Some(htlc) = &htlc {
4667
4667
let mut fee = res;
4668
4668
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;
4670
4670
}
4671
4671
let total_pending_htlcs = context.pending_inbound_htlcs.len() + context.pending_outbound_htlcs.len();
4672
4672
let commitment_tx_info = CommitmentTxInfoCached {
0 commit comments