contractcourt: record force and breach close initiator

This commit is contained in:
carla committed 2020-02-21 13:53:43 +02:00
1 parent c9915e027e
commit 4eb3036f67
4 files changed
+202 -14

No files matched your search

+3 -1
View File
@@ -985,7 +985,9 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
closeSummary.LastChanSyncMsg = chanSync
}
if err := c.cfg.chanState.CloseChannel(&closeSummary); err != nil {
if err := c.cfg.chanState.CloseChannel(
&closeSummary, channeldb.ChanStatusRemoteCloseInitiator,
); err != nil {
return err
}