From 30ad49a29d58e1029d28cf51da8cbf4d841fa68d Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Thu, 14 Dec 2023 19:01:20 -0800 Subject: [PATCH] chancloser: add new closeAwaitingFlushState --- lnwallet/chancloser/chancloser.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnwallet/chancloser/chancloser.go b/lnwallet/chancloser/chancloser.go index f2ed6da2b..83692e01e 100644 --- a/lnwallet/chancloser/chancloser.go +++ b/lnwallet/chancloser/chancloser.go @@ -70,6 +70,11 @@ const ( // phase. closeShutdownInitiated + // closeAwaitingFlush is the state that's transitioned to once both + // Shutdown messages have been exchanged but we are waiting for the + // HTLCs to clear out of the channel. + closeAwaitingFlush + // closeFeeNegotiation is the third, and most persistent state. Both // parties enter this state after they've sent and received a shutdown // message. During this phase, both sides will send monotonically