mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-26 17:56:32 +02:00
channeldb: don't delete the chainHash bucket in CloseChannel
In this commit, we fix an existing bug wherein if we closed two channels, then we were unable to read the channel state afterwards as we deleted the enclosing bucket.
This commit is contained in:
@@ -1299,10 +1299,6 @@ func (c *OpenChannel) CloseChannel(summary *ChannelCloseSummary) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = nodeChanBucket.DeleteBucket(c.ChainHash[:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Finally, create a summary of this channel in the closed
|
||||
// channel bucket for this node.
|
||||
|
Reference in New Issue
Block a user