You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning/src/chain/keysinterface.rs
+7-10Lines changed: 7 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -486,11 +486,10 @@ impl ChannelKeys for InMemoryChannelKeys {
486
486
let funding_pubkey = PublicKey::from_secret_key(secp_ctx,&self.funding_key);
487
487
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey,&self.counterparty_pubkeys().funding_pubkey);
488
488
489
-
let channel_parameters = self.make_channel_parameters();
490
-
let directed_channel_parameters = channel_parameters.to_directed(false);
491
-
let commitment_sig = commitment_tx.get_signature(&directed_channel_parameters,&self.funding_key,&channel_funding_redeemscript,self.channel_value_satoshis, secp_ctx);
489
+
let built_tx = &commitment_tx.built;
490
+
let commitment_sig = built_tx.get_signature(&self.funding_key,&channel_funding_redeemscript,self.channel_value_satoshis, secp_ctx);
492
491
493
-
let commitment_txid = commitment_tx.calculate_txid(&directed_channel_parameters, secp_ctx);
0 commit comments