rpcserver: add TODO for removing coop closes from "pending close" channels

This commit is contained in:
Johan T. Halseth 2018-05-24 10:29:20 +02:00
parent 8afc7bf66e
commit 5cef2bacde
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -1455,6 +1455,10 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
// If the channel was closed cooperatively, then we'll only // If the channel was closed cooperatively, then we'll only
// need to tack on the closing txid. // need to tack on the closing txid.
// TODO(halseth): remove. After recent changes, a coop closed
// channel should never be in the "pending close" state.
// Keeping for now to let someone that upgraded in the middle
// of a close let their closing tx confirm.
case channeldb.CooperativeClose: case channeldb.CooperativeClose:
resp.PendingClosingChannels = append( resp.PendingClosingChannels = append(
resp.PendingClosingChannels, resp.PendingClosingChannels,