contractcourt: record force and breach close initiator

This commit is contained in:
carla
2020-02-21 13:49:12 +02:00
parent c9915e027e
commit 4eb3036f67
4 changed files with 202 additions and 14 deletions

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
}