Merge pull request #4361 from yyforyongyu/add-channel-status
contractcourt: add ChannelStatus in MarkChannelClosed
This commit is contained in:
commit
1de7e30cd1
@ -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 "+
|
||||
|
Loading…
Reference in New Issue
Block a user