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
let funding_pubkey = PublicKey::from_secret_key(secp_ctx,&self.funding_key);
212
214
let remote_channel_pubkeys = self.remote_channel_pubkeys.as_ref().expect("must set remote channel pubkeys before signing");
213
215
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey,&remote_channel_pubkeys.funding_pubkey);
214
216
215
-
let commitment_sighash = hash_to_message!(&bip143::SighashComponents::new(&commitment_tx).sighash_all(&commitment_tx.input[0],&channel_funding_redeemscript, channel_value_satoshis)[..]);
217
+
let commitment_sighash = hash_to_message!(&bip143::SighashComponents::new(&commitment_tx).sighash_all(&commitment_tx.input[0],&channel_funding_redeemscript,self.channel_value_satoshis)[..]);
216
218
let commitment_sig = secp_ctx.sign(&commitment_sighash,&self.funding_key);
217
219
218
220
let commitment_txid = commitment_tx.txid();
@@ -234,13 +236,17 @@ impl ChannelKeys for InMemoryChannelKeys {
let remote_keys = self.build_remote_transaction_keys()?;
1420
1420
let remote_initial_commitment_tx = self.build_commitment_transaction(self.cur_remote_commitment_transaction_number,&remote_keys,false,false,self.feerate_per_kw).0;
1421
-
let remote_signature = self.local_keys.sign_remote_commitment(self.channel_value_satoshis,self.feerate_per_kw,&remote_initial_commitment_tx,&remote_keys,&Vec::new(),self.our_to_self_delay,&self.secp_ctx)
1421
+
let remote_signature = self.local_keys.sign_remote_commitment(self.feerate_per_kw,&remote_initial_commitment_tx,&remote_keys,&Vec::new(),self.our_to_self_delay,&self.secp_ctx)
1422
1422
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed"))?.0;
1423
1423
1424
1424
// We sign the "remote" commitment transaction, allowing them to broadcast the tx if they wish.
let remote_keys = self.build_remote_transaction_keys()?;
3156
3156
let remote_initial_commitment_tx = self.build_commitment_transaction(self.cur_remote_commitment_transaction_number,&remote_keys,false,false,self.feerate_per_kw).0;
let res = self.local_keys.sign_remote_commitment(self.channel_value_satoshis,feerate_per_kw,&remote_commitment_tx.0,&remote_keys,&htlcs,self.our_to_self_delay,&self.secp_ctx)
3465
+
let res = self.local_keys.sign_remote_commitment(feerate_per_kw,&remote_commitment_tx.0,&remote_keys,&htlcs,self.our_to_self_delay,&self.secp_ctx)
3466
3466
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed"))?;
0 commit comments