Skip to content

Commit c906fac

Browse files
committed
Move htlc_basepoint to variable
1 parent 2690823 commit c906fac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/sign/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,8 @@ impl EcdsaChannelSigner for InMemorySigner {
12291229
let counterparty_htlcpubkey = HtlcKey::from_basepoint(
12301230
&secp_ctx, &counterparty_keys.htlc_basepoint, &per_commitment_point,
12311231
);
1232-
let htlcpubkey = HtlcKey::from_basepoint(&secp_ctx, &self.pubkeys().htlc_basepoint, &per_commitment_point);
1232+
let htlc_basepoint = self.pubkeys().htlc_basepoint;
1233+
let htlcpubkey = HtlcKey::from_basepoint(&secp_ctx, &htlc_basepoint, &per_commitment_point);
12331234
let chan_type = self.channel_type_features().expect(MISSING_PARAMS_ERR);
12341235
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&htlc, chan_type, &counterparty_htlcpubkey, &htlcpubkey, &revocation_pubkey);
12351236
let mut sighash_parts = sighash::SighashCache::new(htlc_tx);

0 commit comments

Comments
 (0)