a7813ae5b095e7647ceccefa0df8c60bf70cc9c5
[ldk-java] / src / main / java / org / ldk / enums / ChannelShutdownState.java
1 package org.ldk.enums;
2
3 /**
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
10  */
11 public enum ChannelShutdownState {
12         /**
13          * Channel has not sent or received a shutdown message.
14          */
15         LDKChannelShutdownState_NotShuttingDown,
16         /**
17          * Local node has sent a shutdown message for this channel.
18          */
19         LDKChannelShutdownState_ShutdownInitiated,
20         /**
21          * Shutdown message exchanges have concluded and the channels are in the midst of
22          * resolving all existing open HTLCs before closing can continue.
23          */
24         LDKChannelShutdownState_ResolvingHTLCs,
25         /**
26          * All HTLCs have been resolved, nodes are currently negotiating channel close onchain fee rates.
27          */
28         LDKChannelShutdownState_NegotiatingClosingFee,
29         /**
30          * We've successfully negotiated a closing_signed dance. At this point `ChannelManager` is about
31          * to drop the channel.
32          */
33         LDKChannelShutdownState_ShutdownComplete,
34         ; static native void init();
35         static { init(); }
36 }