From 5cef2bacdee207e6ef07f0e3b35287dc6eb74076 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 24 May 2018 10:29:20 +0200 Subject: [PATCH] rpcserver: add TODO for removing coop closes from "pending close" channels --- rpcserver.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index 6f0d01e1..59ce3af4 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1455,6 +1455,10 @@ func (r *rpcServer) PendingChannels(ctx context.Context, // If the channel was closed cooperatively, then we'll only // 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: resp.PendingClosingChannels = append( resp.PendingClosingChannels,