contractcourt/chain_watcher: add channel sync message to CloseChannelSummary

This commit is contained in:
Johan T. Halseth committed 2018-11-21 10:28:56 +01:00
1 parent 676a1b1407
commit a9f93b2988
2 files changed
+36

No files matched your search

+9
View File
@@ -5116,6 +5116,15 @@ func NewUnilateralCloseSummary(chanState *channeldb.OpenChannel, signer Signer,
LocalChanConfig: chanState.LocalChanCfg,
}
// Attempt to add a channel sync message to the close summary.
chanSync, err := ChanSyncMsg(chanState)
if err != nil {
walletLog.Errorf("ChannelPoint(%v): unable to create channel sync "+
"message: %v", chanState.FundingOutpoint, err)
} else {
closeSummary.LastChanSyncMsg = chanSync
}
return &UnilateralCloseSummary{
SpendDetail: commitSpend,
ChannelCloseSummary: closeSummary,