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

+1 -2
View File
@@ -609,8 +609,7 @@ func (l *channelLink) syncChanStates() error {
// side. Based on this message, the remote party will decide if they
// need to retransmit any data or not.
chanState := l.channel.State()
localChanSyncMsg, err := lnwallet.ChanSyncMsg(
chanState,
localChanSyncMsg, err := chanState.ChanSyncMsg(
chanState.HasChanStatus(channeldb.ChanStatusRestored),
)
if err != nil {