channeldb+lnwallet: make ChanSyncMsg method on OpenChannel

This commit is contained in:
Johan T. Halseth committed 2019-09-25 14:04:42 +02:00
1 parent 0122dda88a
commit eb1b84c0b4
5 files changed
+106 -110

No files matched your search

+3 -6
View File
@@ -731,8 +731,7 @@ func (c *chainWatcher) dispatchCooperativeClose(commitSpend *chainntnfs.SpendDet
}
// Attempt to add a channel sync message to the close summary.
chanSync, err := lnwallet.ChanSyncMsg(
c.cfg.chanState,
chanSync, err := c.cfg.chanState.ChanSyncMsg(
c.cfg.chanState.HasChanStatus(channeldb.ChanStatusRestored),
)
if err != nil {
@@ -811,8 +810,7 @@ func (c *chainWatcher) dispatchLocalForceClose(
}
// Attempt to add a channel sync message to the close summary.
chanSync, err := lnwallet.ChanSyncMsg(
c.cfg.chanState,
chanSync, err := c.cfg.chanState.ChanSyncMsg(
c.cfg.chanState.HasChanStatus(channeldb.ChanStatusRestored),
)
if err != nil {
@@ -998,8 +996,7 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
}
// Attempt to add a channel sync message to the close summary.
chanSync, err := lnwallet.ChanSyncMsg(
c.cfg.chanState,
chanSync, err := c.cfg.chanState.ChanSyncMsg(
c.cfg.chanState.HasChanStatus(channeldb.ChanStatusRestored),
)
if err != nil {