contractcourt: properly log error if unable to update chan close state
This commit is contained in:
1 file changed
+2
-2
@@ -747,8 +747,8 @@ func (c *CooperativeCloseCtx) LogPotentialClose(potentialClose *channeldb.Channe
|
|||||||
err := c.watcher.chanState.CloseChannel(potentialClose)
|
err := c.watcher.chanState.CloseChannel(potentialClose)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warnf("unable to update latest close for "+
|
log.Warnf("unable to update latest close for "+
|
||||||
"ChannelPoint(%v)",
|
"ChannelPoint(%v): %v",
|
||||||
c.watcher.chanState.FundingOutpoint)
|
c.watcher.chanState.FundingOutpoint, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = c.watcher.markChanClosed()
|
err = c.watcher.markChanClosed()
|
||||||
|
|||||||
Reference in new issue
Block a user