mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
htlcswitch: update syncChanStates for new ChanSyncMsg API
This commit is contained in:
parent
4ff4e1b0de
commit
1afec1342b
1 changed files with 5 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue