contractcourt: add ChannelStatus in MarkChannelClosed

This commit is contained in:
yyforyongyu 2020-06-08 17:30:28 +08:00
parent be36776120
commit ac99c0d021

@ -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 "+