Skip to content

Commit 75c2b0a

Browse files
committed
Rename payment_key to payment_basepoint in chan_utils
.. as it doesn't use the actual signer's `payment_key`, but the associated public key.
1 parent 6dfe913 commit 75c2b0a

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
@@ -550,11 +550,11 @@ pub fn get_revokeable_redeemscript(revocation_key: &RevocationKey, contest_delay
550550

551551
/// Returns the script for the counterparty's output on a holder's commitment transaction based on
552552
/// the channel type.
553-
pub fn get_counterparty_payment_script(channel_type_features: &ChannelTypeFeatures, payment_key: &PublicKey) -> ScriptBuf {
553+
pub fn get_counterparty_payment_script(channel_type_features: &ChannelTypeFeatures, payment_basepoint: &PublicKey) -> ScriptBuf {
554554
if channel_type_features.supports_anchors_zero_fee_htlc_tx() {
555-
get_to_countersignatory_with_anchors_redeemscript(payment_key).to_p2wsh()
555+
get_to_countersignatory_with_anchors_redeemscript(payment_basepoint).to_p2wsh()
556556
} else {
557-
ScriptBuf::new_p2wpkh(&WPubkeyHash::hash(&payment_key.serialize()))
557+
ScriptBuf::new_p2wpkh(&WPubkeyHash::hash(&payment_basepoint.serialize()))
558558
}
559559
}
560560

0 commit comments

Comments
 (0)