pub enum ChannelShutdownState {
NotShuttingDown,
ShutdownInitiated,
ResolvingHTLCs,
NegotiatingClosingFee,
ShutdownComplete,
}Expand description
Further information on the details of the channel shutdown.
Upon channels being forced closed (i.e. commitment transaction confirmation detected
by ChainMonitor), ChannelShutdownState will be set to ShutdownComplete or
the channel will be removed shortly.
Also note, that in normal operation, peers could disconnect at any of these states
and require peer re-connection before making progress onto other states
Variants§
NotShuttingDown
Channel has not sent or received a shutdown message.
ShutdownInitiated
Local node has sent a shutdown message for this channel.
ResolvingHTLCs
Shutdown message exchanges have concluded and the channels are in the midst of resolving all existing open HTLCs before closing can continue.
NegotiatingClosingFee
All HTLCs have been resolved, nodes are currently negotiating channel close onchain fee rates.
ShutdownComplete
We’ve successfully negotiated a closing_signed dance. At this point ChannelManager is about
to drop the channel.
Trait Implementations§
Source§impl Clone for ChannelShutdownState
impl Clone for ChannelShutdownState
Source§fn clone(&self) -> ChannelShutdownState
fn clone(&self) -> ChannelShutdownState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more