Skip to content

Commit

Permalink
Merge pull request lightningnetwork#4361 from yyforyongyu/add-channel…
Browse files Browse the repository at this point in the history
…-status

contractcourt: add ChannelStatus in MarkChannelClosed
  • Loading branch information
Roasbeef authored Jun 23, 2020
2 parents bd17286 + ac99c0d commit 1de7e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contractcourt/channel_arbitrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2153,6 +2153,7 @@ func (c *ChannelArbitrator) channelAttendant(bestHeight int32) {

err := c.cfg.MarkChannelClosed(
closeInfo.ChannelCloseSummary,
channeldb.ChanStatusCoopBroadcasted,
)
if err != nil {
log.Errorf("Unable to mark channel closed: "+
Expand Down Expand Up @@ -2223,6 +2224,7 @@ func (c *ChannelArbitrator) channelAttendant(bestHeight int32) {
// close status of the channel.
err = c.cfg.MarkChannelClosed(
closeInfo.ChannelCloseSummary,
channeldb.ChanStatusLocalCloseInitiator,
)
if err != nil {
log.Errorf("Unable to mark "+
Expand Down

0 comments on commit 1de7e30

Please sign in to comment.