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