mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-11 03:25:21 +02:00
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:
@@ -754,10 +754,14 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
|
|||||||
ShortChanID: c.chanState.ShortChanID,
|
ShortChanID: c.chanState.ShortChanID,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := c.chanState.CloseChannel(&closeSummary); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
log.Infof("Breached channel=%v marked pending-closed",
|
log.Infof("Breached channel=%v marked pending-closed",
|
||||||
c.chanState.FundingOutpoint)
|
c.chanState.FundingOutpoint)
|
||||||
|
|
||||||
return c.chanState.CloseChannel(&closeSummary)
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CooperativeCloseCtx is a transactional object that's used by external
|
// CooperativeCloseCtx is a transactional object that's used by external
|
||||||
|
Reference in New Issue
Block a user