From 37e00e95636709ca477500a9e39543b04bbc7d93 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 7 Mar 2024 20:11:01 -0800 Subject: [PATCH] lnwallet: remove the isClosed check for coop close With the new RBF based close, we'll actually close the same channel multiple times, so this check isn't required any longer. --- lnwallet/channel.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 649d071eb..122d408ff 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -7363,12 +7363,6 @@ func (lc *LightningChannel) CreateCloseProposal(proposedFee btcutil.Amount, lc.Lock() defer lc.Unlock() - // If we're already closing the channel, then ignore this request. - if lc.isClosed { - // TODO(roasbeef): check to ensure no pending payments - return nil, nil, 0, ErrChanClosing - } - opts := defaultCloseOpts() for _, optFunc := range closeOpts { optFunc(opts) @@ -7453,12 +7447,6 @@ func (lc *LightningChannel) CompleteCooperativeClose( lc.Lock() defer lc.Unlock() - // If the channel is already closing, then ignore this request. - if lc.isClosed { - // TODO(roasbeef): check to ensure no pending payments - return nil, 0, ErrChanClosing - } - opts := defaultCloseOpts() for _, optFunc := range closeOpts { optFunc(opts)