From 72d9726e7fee678fd8e815f02b751e7fc5a4a49c Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 23 May 2018 12:07:35 +0200 Subject: [PATCH] channeldb/channel: update IsPending godoc The pending state definitin in ChannelCloseSummary was slightly changed in such a way that channels that has had their commitment broadcasted now is no longer considered "pending close". They now instead stay in the open chan bucket with the ChanStatus "CommitmentBroadcasted" until their commitment is confirmed. This commit updates the IsPending godoc to reflect this. --- channeldb/channel.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/channeldb/channel.go b/channeldb/channel.go index 2dec4741..dfa436b9 100644 --- a/channeldb/channel.go +++ b/channeldb/channel.go @@ -1673,12 +1673,12 @@ type ChannelCloseSummary struct { // IsPending indicates whether this channel is in the 'pending close' // state, which means the channel closing transaction has been - // broadcast, but not confirmed yet or has not yet been fully resolved. - // In the case of a channel that has been cooperatively closed, it will - // no longer be considered pending as soon as the closing transaction - // has been confirmed. However, for channel that have been force - // closed, they'll stay marked as "pending" until _all_ the pending - // funds have been swept. + // confirmed, but not yet been fully resolved. In the case of a channel + // that has been cooperatively closed, it will go straight into the + // fully resolved state as soon as the closing transaction has been + // confirmed. However, for channel that have been force closed, they'll + // stay marked as "pending" until _all_ the pending funds have been + // swept. IsPending bool // RemoteCurrentRevocation is the current revocation for their