@@ -599,6 +599,8 @@ pub(crate) struct ShutdownResult {
599
599
/// An unbroadcasted batch funding transaction id. The closure of this channel should be
600
600
/// propagated to the remainder of the batch.
601
601
pub(crate) unbroadcasted_batch_funding_txid: Option<Txid>,
602
+ pub(crate) channel_id: ChannelId,
603
+ pub(crate) counterparty_node_id: PublicKey,
602
604
}
603
605
604
606
/// If the majority of the channels funds are to the fundee and the initiator holds only just
@@ -2164,6 +2166,8 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2164
2166
monitor_update,
2165
2167
dropped_outbound_htlcs,
2166
2168
unbroadcasted_batch_funding_txid,
2169
+ channel_id: self.channel_id,
2170
+ counterparty_node_id: self.counterparty_node_id,
2167
2171
}
2168
2172
}
2169
2173
@@ -4707,6 +4711,8 @@ impl<SP: Deref> Channel<SP> where
4707
4711
monitor_update: None,
4708
4712
dropped_outbound_htlcs: Vec::new(),
4709
4713
unbroadcasted_batch_funding_txid: self.context.unbroadcasted_batch_funding_txid(),
4714
+ channel_id: self.context.channel_id,
4715
+ counterparty_node_id: self.context.counterparty_node_id,
4710
4716
};
4711
4717
let tx = self.build_signed_closing_transaction(&mut closing_tx, &msg.signature, &sig);
4712
4718
self.context.channel_state = ChannelState::ShutdownComplete as u32;
@@ -4735,6 +4741,8 @@ impl<SP: Deref> Channel<SP> where
4735
4741
monitor_update: None,
4736
4742
dropped_outbound_htlcs: Vec::new(),
4737
4743
unbroadcasted_batch_funding_txid: self.context.unbroadcasted_batch_funding_txid(),
4744
+ channel_id: self.context.channel_id,
4745
+ counterparty_node_id: self.context.counterparty_node_id,
4738
4746
};
4739
4747
self.context.channel_state = ChannelState::ShutdownComplete as u32;
4740
4748
self.context.update_time_counter += 1;
@@ -5913,6 +5921,8 @@ impl<SP: Deref> Channel<SP> where
5913
5921
monitor_update: None,
5914
5922
dropped_outbound_htlcs: Vec::new(),
5915
5923
unbroadcasted_batch_funding_txid: self.context.unbroadcasted_batch_funding_txid(),
5924
+ channel_id: self.context.channel_id,
5925
+ counterparty_node_id: self.context.counterparty_node_id,
5916
5926
};
5917
5927
self.context.channel_state = ChannelState::ShutdownComplete as u32;
5918
5928
Some(shutdown_result)
0 commit comments