Skip to content

Commit

Permalink
channeldb: don't delete the chainHash bucket in CloseChannel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roasbeef committed Nov 11, 2017
1 parent 3875754 commit 699e532
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions channeldb/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 699e532

Please sign in to comment.