lnwallet: add additional comment for case in ProcessChanSyncMsg
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user