Skip to content

Commit c3e6c43

Browse files
committed
Delete TxBuilder::commit_tx_fee_sat
1 parent b62e96e commit c3e6c43

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lightning/src/sign/tx_builder.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ pub(crate) trait TxBuilder {
183183
dust_exposure_limiting_feerate: Option<u32>, broadcaster_dust_limit_satoshis: u64,
184184
channel_type: &ChannelTypeFeatures,
185185
) -> Result<NextCommitmentStats, ()>;
186-
fn commit_tx_fee_sat(
187-
&self, feerate_per_kw: u32, nondust_htlc_count: usize, channel_type: &ChannelTypeFeatures,
188-
) -> u64;
189186
fn build_commitment_transaction<L: Deref>(
190187
&self, local: bool, commitment_number: u64, per_commitment_point: &PublicKey,
191188
channel_parameters: &ChannelTransactionParameters, secp_ctx: &Secp256k1<secp256k1::All>,
@@ -434,11 +431,6 @@ impl TxBuilder for SpecTxBuilder {
434431
extra_accepted_htlc_dust_exposure_msat,
435432
})
436433
}
437-
fn commit_tx_fee_sat(
438-
&self, feerate_per_kw: u32, nondust_htlc_count: usize, channel_type: &ChannelTypeFeatures,
439-
) -> u64 {
440-
commit_tx_fee_sat(feerate_per_kw, nondust_htlc_count, channel_type)
441-
}
442434
fn build_commitment_transaction<L: Deref>(
443435
&self, local: bool, commitment_number: u64, per_commitment_point: &PublicKey,
444436
channel_parameters: &ChannelTransactionParameters, secp_ctx: &Secp256k1<secp256k1::All>,
@@ -495,7 +487,7 @@ impl TxBuilder for SpecTxBuilder {
495487
// The value going to each party MUST be 0 or positive, even if all HTLCs pending in the
496488
// commitment clear by failure.
497489

498-
let commit_tx_fee_sat = self.commit_tx_fee_sat(
490+
let commit_tx_fee_sat = commit_tx_fee_sat(
499491
feerate_per_kw,
500492
htlcs_in_tx.len(),
501493
&channel_parameters.channel_type_features,

0 commit comments

Comments
 (0)