File tree 1 file changed +8
-18
lines changed
1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -3663,24 +3663,14 @@ where
3663
3663
if !channel_phase.context_mut().update_config(&config) {
3664
3664
continue;
3665
3665
}
3666
- match channel_phase {
3667
- ChannelPhase::Funded(channel) => {
3668
- if let Ok(msg) = self.get_channel_update_for_broadcast(channel) {
3669
- peer_state.pending_msg_events.push(events::MessageSendEvent::BroadcastChannelUpdate { msg });
3670
- } else if let Ok(msg) = self.get_channel_update_for_unicast(channel) {
3671
- peer_state.pending_msg_events.push(events::MessageSendEvent::SendChannelUpdate {
3672
- node_id: channel.context.get_counterparty_node_id(),
3673
- msg,
3674
- });
3675
- }
3676
- },
3677
- ChannelPhase::UnfundedOutboundV1(_) | ChannelPhase::UnfundedInboundV1(_) => {
3678
- let context = channel_phase.context_mut();
3679
- let mut config = context.config();
3680
- config.apply(config_update);
3681
- // We update the config, but we MUST NOT broadcast a `channel_update` before `channel_ready`
3682
- // which would be the case for pending inbound/outbound channels.
3683
- context.update_config(&config);
3666
+ if let ChannelPhase::Funded(channel) = channel_phase {
3667
+ if let Ok(msg) = self.get_channel_update_for_broadcast(channel) {
3668
+ peer_state.pending_msg_events.push(events::MessageSendEvent::BroadcastChannelUpdate { msg });
3669
+ } else if let Ok(msg) = self.get_channel_update_for_unicast(channel) {
3670
+ peer_state.pending_msg_events.push(events::MessageSendEvent::SendChannelUpdate {
3671
+ node_id: channel.context.get_counterparty_node_id(),
3672
+ msg,
3673
+ });
3684
3674
}
3685
3675
}
3686
3676
continue;
You can’t perform that action at this time.
0 commit comments