channeldb+lnwallet: make ChanSyncMsg method on OpenChannel

This commit is contained in:
Johan T. Halseth
2019-09-06 13:14:38 +02:00
parent 0122dda88a
commit eb1b84c0b4
5 changed files with 106 additions and 110 deletions

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 {