File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6170,14 +6170,11 @@ where
6170
6170
6171
6171
// If we're doing manual acceptance checks on the channel, then defer creation until we're sure we want to accept.
6172
6172
if self.default_configuration.manually_accept_inbound_channels {
6173
- let channel_type_res = channel::channel_type_from_open_channel(
6174
- &msg, &peer_state.latest_features, &self.channel_type_features()
6175
- );
6176
- let channel_type = match channel_type_res {
6177
- Ok(channel_type) => channel_type,
6178
- Err(e) =>
6179
- return Err(MsgHandleErrInternal::from_chan_no_close(e, msg.temporary_channel_id)),
6180
- };
6173
+ let channel_type = channel::channel_type_from_open_channel(
6174
+ &msg, &peer_state.latest_features, &self.channel_type_features()
6175
+ ).map_err(|e|
6176
+ MsgHandleErrInternal::from_chan_no_close(e, msg.temporary_channel_id)
6177
+ )?;
6181
6178
let mut pending_events = self.pending_events.lock().unwrap();
6182
6179
pending_events.push_back((events::Event::OpenChannelRequest {
6183
6180
temporary_channel_id: msg.temporary_channel_id.clone(),
You can’t perform that action at this time.
0 commit comments