From ac99c0d02124a50369c35916cc915ee61660901d Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 8 Jun 2020 17:30:28 +0800 Subject: [PATCH] contractcourt: add ChannelStatus in MarkChannelClosed --- contractcourt/channel_arbitrator.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contractcourt/channel_arbitrator.go b/contractcourt/channel_arbitrator.go index 8ad7585a..68909673 100644 --- a/contractcourt/channel_arbitrator.go +++ b/contractcourt/channel_arbitrator.go @@ -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: "+ @@ -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 "+