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 keys = self.build_holder_transaction_keys(self.cur_holder_commitment_transaction_number)?;
1463
1463
let initial_commitment_info = self.build_commitment_transaction(self.cur_holder_commitment_transaction_number,&keys,true,false,self.feerate_per_kw, logger);
1464
-
let channel_static_info = self.get_holder_channel_static_info();
log_trace!(logger,"Checking funding_created tx signature {} by key {} against tx {} (sighash {}) with redeemscript {}", log_bytes!(sig.serialize_compact()[..]), log_bytes!(self.counterparty_funding_pubkey().serialize()), encode::serialize_hex(&initial_commitment_tx), log_bytes!(sighash[..]), encode::serialize_hex(&funding_script));
1469
1469
secp_check!(self.secp_ctx.verify(&sighash,&sig,self.counterparty_funding_pubkey()),"Invalid funding_created signature from peer".to_owned());
1470
1470
1471
1471
let counterparty_keys = self.build_remote_transaction_keys()?;
1472
1472
let counterparty_initial_commitment_info = self.build_commitment_transaction(self.cur_counterparty_commitment_transaction_number,&counterparty_keys,false,false,self.feerate_per_kw, logger);
1473
-
let counterparty_channel_static_info = self.get_counterparty_channel_static_info();
1474
1473
1475
-
let counterparty_initial_commitment_tx = counterparty_initial_commitment_info.0.build(&counterparty_channel_static_info,&self.secp_ctx).unwrap().0;
1474
+
let counterparty_initial_commitment_tx = counterparty_initial_commitment_info.0.build(false,&channel_static_info,&self.secp_ctx).unwrap().0;
1476
1475
let pre_remote_keys = PreCalculatedTxCreationKeys::new(counterparty_keys);
1477
1476
let counterparty_signature = self.holder_keys.sign_counterparty_commitment(self.feerate_per_kw,&counterparty_initial_commitment_tx,&pre_remote_keys,&Vec::new(),&self.secp_ctx)
1478
1477
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed".to_owned()))?.0;
let counterparty_keys = self.build_remote_transaction_keys()?;
1591
1581
let counterparty_initial_commitment_info = self.build_commitment_transaction(self.cur_counterparty_commitment_transaction_number,&counterparty_keys,false,false,self.feerate_per_kw, logger).0;
1592
1582
// TODO this is not integration tested
1593
-
let counterparty_initial_commitment_tx = counterparty_initial_commitment_info.build(&counterparty_channel_static_info,&self.secp_ctx).unwrap().0;
1583
+
let counterparty_initial_commitment_tx = counterparty_initial_commitment_info.build(false,&channel_static_info,&self.secp_ctx).unwrap().0;
1594
1584
1595
1585
// TODO this works around rustc 1.34.1 borrow issue
1596
1586
let channel_monitor = {
1597
1587
let holder_keys = self.build_holder_transaction_keys(self.cur_holder_commitment_transaction_number)?;
1598
1588
let initial_commitment_info = self.build_commitment_transaction(self.cur_holder_commitment_transaction_number,&holder_keys,true,false,self.feerate_per_kw, logger);
1599
-
let channel_static_info = self.get_holder_channel_static_info();
let counterparty_keys = self.build_remote_transaction_keys()?;
3545
3534
let counterparty_initial_commitment_info = self.build_commitment_transaction(self.cur_counterparty_commitment_transaction_number,&counterparty_keys,false,false,self.feerate_per_kw, logger).0;
0 commit comments