Skip to content

Commit 96dee21

Browse files
committed
Remove unused `TrustedCommitmentTransaction::build_htlc_input_witness
1 parent b9996d7 commit 96dee21

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,23 +1762,6 @@ impl<'a> TrustedCommitmentTransaction<'a> {
17621762
)
17631763
}
17641764

1765-
1766-
/// Builds the witness required to spend the input for the HTLC with index `htlc_index` in a
1767-
/// second-level holder HTLC transaction.
1768-
pub(crate) fn build_htlc_input_witness(
1769-
&self, htlc_index: usize, counterparty_signature: &Signature, signature: &Signature,
1770-
preimage: &Option<PaymentPreimage>
1771-
) -> Witness {
1772-
let keys = &self.inner.keys;
1773-
let htlc_redeemscript = get_htlc_redeemscript_with_explicit_keys(
1774-
&self.inner.htlcs[htlc_index], &self.channel_type_features, &keys.broadcaster_htlc_key,
1775-
&keys.countersignatory_htlc_key, &keys.revocation_key
1776-
);
1777-
build_htlc_input_witness(
1778-
signature, counterparty_signature, preimage, &htlc_redeemscript, &self.channel_type_features,
1779-
)
1780-
}
1781-
17821765
/// Returns the index of the revokeable output, i.e. the `to_local` output sending funds to
17831766
/// the broadcaster, in the built transaction, if any exists.
17841767
///

0 commit comments

Comments
 (0)