Skip to content

Commit e10aa15

Browse files
author
Antoine Riard
committed
Diverse chan_utils cleanups
1 parent 4b95774 commit e10aa15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl TxCreationKeys {
386386

387387
/// A script either spendable by the revocation
388388
/// key or the broadcaster_delayed_payment_key and satisfying the relative-locktime OP_CSV constrain.
389-
/// Encumbering a `to_local` output on a commitment transaction or 2nd-stage HTLC transactions.
389+
/// Encumbering a `to_holder` output on a commitment transaction or 2nd-stage HTLC transactions.
390390
pub fn get_revokeable_redeemscript(revocation_key: &PublicKey, contest_delay: u16, broadcaster_delayed_payment_key: &PublicKey) -> Script {
391391
Builder::new().push_opcode(opcodes::all::OP_IF)
392392
.push_slice(&revocation_key.serialize())
@@ -494,8 +494,8 @@ pub(crate) fn get_htlc_redeemscript_with_explicit_keys(htlc: &HTLCOutputInCommit
494494
}
495495
}
496496

497-
/// note here that 'broadcaster_revocation_key' is generated using countersignatory_revocation_basepoint and broadcaster's
498-
/// commitment secret. 'htlc' does *not* need to have its previous_output_index filled.
497+
/// Gets the witness redeemscript for an HTLC output in a commitment transaction. Note that htlc
498+
/// does not need to have its previous_output_index filled.
499499
#[inline]
500500
pub fn get_htlc_redeemscript(htlc: &HTLCOutputInCommitment, keys: &TxCreationKeys) -> Script {
501501
get_htlc_redeemscript_with_explicit_keys(htlc, &keys.broadcaster_htlc_key, &keys.countersignatory_htlc_key, &keys.revocation_key)

0 commit comments

Comments
 (0)