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