contractcourt/chain_watcher: move log message
This move the log message "channel marked pending-closed" to the point where the channel actually has been marked pending closed, instead of before the database transaction has been done.
This commit is contained in:
parent
7e397067f6
commit
79341fc63e
@ -754,10 +754,14 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
|
||||
ShortChanID: c.chanState.ShortChanID,
|
||||
}
|
||||
|
||||
if err := c.chanState.CloseChannel(&closeSummary); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Infof("Breached channel=%v marked pending-closed",
|
||||
c.chanState.FundingOutpoint)
|
||||
|
||||
return c.chanState.CloseChannel(&closeSummary)
|
||||
return nil
|
||||
}
|
||||
|
||||
// CooperativeCloseCtx is a transactional object that's used by external
|
||||
|
Loading…
Reference in New Issue
Block a user