mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01: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:
parent
3875754e0f
commit
699e5327e1
1 changed files with 0 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue