From 1afec1342b2c2a1c9fa709d2e2086bce26484e1b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 10 Mar 2019 16:44:01 -0700 Subject: [PATCH] htlcswitch: update syncChanStates for new ChanSyncMsg API --- htlcswitch/link.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 901ce171..6c49024f 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -562,7 +562,11 @@ func (l *channelLink) syncChanStates() error { // First, we'll generate our ChanSync message to send to the other // side. Based on this message, the remote party will decide if they // need to retransmit any data or not. - localChanSyncMsg, err := lnwallet.ChanSyncMsg(l.channel.State()) + chanState := l.channel.State() + localChanSyncMsg, err := lnwallet.ChanSyncMsg( + chanState, + chanState.HasChanStatus(channeldb.ChanStatusRestored), + ) if err != nil { return fmt.Errorf("unable to generate chan sync message for "+ "ChannelPoint(%v)", l.channel.ChannelPoint())