4 * Further information on the details of the channel shutdown.
5 * Upon channels being forced closed (i.e. commitment transaction confirmation detected
6 * by `ChainMonitor`), ChannelShutdownState will be set to `ShutdownComplete` or
7 * the channel will be removed shortly.
8 * Also note, that in normal operation, peers could disconnect at any of these states
9 * and require peer re-connection before making progress onto other states
11 public enum ChannelShutdownState {
13 * Channel has not sent or received a shutdown message.
15 LDKChannelShutdownState_NotShuttingDown,
17 * Local node has sent a shutdown message for this channel.
19 LDKChannelShutdownState_ShutdownInitiated,
21 * Shutdown message exchanges have concluded and the channels are in the midst of
22 * resolving all existing open HTLCs before closing can continue.
24 LDKChannelShutdownState_ResolvingHTLCs,
26 * All HTLCs have been resolved, nodes are currently negotiating channel close onchain fee rates.
28 LDKChannelShutdownState_NegotiatingClosingFee,
30 * We've successfully negotiated a closing_signed dance. At this point `ChannelManager` is about
31 * to drop the channel.
33 LDKChannelShutdownState_ShutdownComplete,
34 ; static native void init();