Merge pull request #4361 from yyforyongyu/add-channel-status

contractcourt: add ChannelStatus in MarkChannelClosed
This commit is contained in:
Olaoluwa Osuntokun 2020-06-23 16:23:30 -07:00 committed by GitHub
commit 1de7e30cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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