@@ -7673,7 +7673,7 @@ where
7673
7673
},
7674
7674
OpenChannelMessage::V2(open_channel_msg) => {
7675
7675
InboundV2Channel::new(&self.fee_estimator, &self.entropy_source, &self.signer_provider,
7676
- *counterparty_node_id, &self.channel_type_features(), &peer_state.latest_features,
7676
+ self.get_our_node_id(), *counterparty_node_id, &self.channel_type_features(), &peer_state.latest_features,
7677
7677
&open_channel_msg, funding_inputs, total_witness_weight, user_channel_id,
7678
7678
&self.default_configuration, best_block_height, &self.logger
7679
7679
).map_err(|_| MsgHandleErrInternal::from_chan_no_close(
@@ -7945,9 +7945,9 @@ where
7945
7945
},
7946
7946
OpenChannelMessageRef::V2(msg) => {
7947
7947
let channel = InboundV2Channel::new(&self.fee_estimator, &self.entropy_source,
7948
- &self.signer_provider, *counterparty_node_id, & self.channel_type_features() ,
7949
- &peer_state.latest_features, msg, vec![], Weight::from_wu(0), user_channel_id ,
7950
- &self.default_configuration, best_block_height, &self.logger
7948
+ &self.signer_provider, self.get_our_node_id(), *counterparty_node_id ,
7949
+ &self.channel_type_features(), & peer_state.latest_features, msg, vec![], Weight::from_wu(0),
7950
+ user_channel_id, &self.default_configuration, best_block_height, &self.logger
7951
7951
).map_err(|e| MsgHandleErrInternal::from_chan_no_close(e, msg.common_fields.temporary_channel_id))?;
7952
7952
let message_send_event = events::MessageSendEvent::SendAcceptChannelV2 {
7953
7953
node_id: *counterparty_node_id,
@@ -8266,9 +8266,11 @@ where
8266
8266
match peer_state.channel_by_id.entry(msg.channel_id) {
8267
8267
hash_map::Entry::Occupied(mut chan_phase_entry) => {
8268
8268
let channel_phase = chan_phase_entry.get_mut();
8269
- let (msg_send_event_opt, tx_opt) = match channel_phase {
8270
- ChannelPhase::UnfundedInboundV2(channel) => channel.tx_complete(msg).into_msg_send_event_or_tx(counterparty_node_id),
8271
- ChannelPhase::UnfundedOutboundV2(channel) => channel.tx_complete(msg).into_msg_send_event_or_tx(counterparty_node_id),
8269
+ let (msg_send_event_opt, signing_session_opt) = match channel_phase {
8270
+ ChannelPhase::UnfundedInboundV2(channel) => channel.tx_complete(msg)
8271
+ .into_msg_send_event_or_signing_session(counterparty_node_id),
8272
+ ChannelPhase::UnfundedOutboundV2(channel) => channel.tx_complete(msg)
8273
+ .into_msg_send_event_or_signing_session(counterparty_node_id),
8272
8274
_ => try_chan_phase_entry!(self, peer_state, Err(ChannelError::Close(
8273
8275
(
8274
8276
"Got a tx_complete message with no interactive transaction construction expected or in-progress".into(),
@@ -8278,7 +8280,7 @@ where
8278
8280
if let Some(msg_send_event) = msg_send_event_opt {
8279
8281
peer_state.pending_msg_events.push(msg_send_event);
8280
8282
}
8281
- if let Some(tx ) = tx_opt {
8283
+ if let Some(signing_session ) = signing_session_opt {
8282
8284
// TODO(dual_funding): Handle this unsigned transaction.
8283
8285
}
8284
8286
Ok(())
0 commit comments