lnwallet: add additional comment for case in ProcessChanSyncMsg
This commit is contained in:
parent
90d8a46ec6
commit
3e866c6cc5
@ -3496,9 +3496,9 @@ func (lc *LightningChannel) ProcessChanSyncMsg(
|
|||||||
// is valid.
|
// is valid.
|
||||||
var commitPoint *btcec.PublicKey
|
var commitPoint *btcec.PublicKey
|
||||||
switch {
|
switch {
|
||||||
case msg.NextLocalCommitHeight == remoteTailHeight+2:
|
// If their height is one beyond what we know their current height to
|
||||||
commitPoint = lc.channelState.RemoteNextRevocation
|
// be, then we need to compare their current unrevoked commitment point
|
||||||
|
// as that's what they should send.
|
||||||
case msg.NextLocalCommitHeight == remoteTailHeight+1:
|
case msg.NextLocalCommitHeight == remoteTailHeight+1:
|
||||||
commitPoint = lc.channelState.RemoteCurrentRevocation
|
commitPoint = lc.channelState.RemoteCurrentRevocation
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user