You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ChannelClosed generation at cooperative/force-close/error processing
When we detect a channel `is_shutdown()` or call on it
`force_shutdown()`, we notify the user with a Event::ChannelClosed
informing about the id and closure reason in a best effort.
ChannelError::CloseDelayBroadcast(_) => {panic!("Wait is only generated on receipt of channel_reestablish, which is handled by try_chan_entry, we don't bother to support it here");}
// ChannelClosed event is generated by handle_error for us
3679
3689
!close_channel
3680
3690
}
3681
3691
}
@@ -4089,6 +4099,7 @@ where
4089
4099
msg: update
4090
4100
});
4091
4101
}
4102
+
self.pending_events.lock().unwrap().push(events::Event::ChannelClosed{channel_id: channel.channel_id(),err:format!("Channel has been closed onchain!")});
self.pending_events.lock().unwrap().push(events::Event::ChannelClosed{channel_id: chan.channel_id(),err:format!("Peer disconnected with no new connection possible")});
0 commit comments