File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1113,6 +1113,10 @@ pub enum Event {
1113
1113
///
1114
1114
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
1115
1115
channel_type : ChannelTypeFeatures ,
1116
+ /// True if this channel is (or will be) publicly-announced.
1117
+ is_public : bool ,
1118
+ /// Opening fields for the channel given by the counterparty.
1119
+ open_fields : msgs:: CommonOpenChannelFields ,
1116
1120
} ,
1117
1121
/// Indicates that the HTLC was accepted, but could not be processed when or after attempting to
1118
1122
/// forward it.
Original file line number Diff line number Diff line change @@ -7169,12 +7169,15 @@ where
7169
7169
MsgHandleErrInternal::from_chan_no_close(e, msg.common_fields.temporary_channel_id)
7170
7170
)?;
7171
7171
let mut pending_events = self.pending_events.lock().unwrap();
7172
+ let is_public = (msg.common_fields.channel_flags & 1) == 1;
7172
7173
pending_events.push_back((events::Event::OpenChannelRequest {
7173
7174
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
7174
7175
counterparty_node_id: counterparty_node_id.clone(),
7175
7176
funding_satoshis: msg.common_fields.funding_satoshis,
7176
7177
push_msat: msg.push_msat,
7177
7178
channel_type,
7179
+ is_public,
7180
+ open_fields: msg.common_fields.clone(),
7178
7181
}, None));
7179
7182
peer_state.inbound_channel_request_by_id.insert(channel_id, InboundChannelRequest {
7180
7183
open_channel_msg: msg.clone(),
You can’t perform that action at this time.
0 commit comments