channeldb: AdvanceCommitChainTail clarification comment

This commit is contained in:
eugene 2021-04-21 17:36:51 -04:00
parent 8f940a5ea3
commit 9d0d5bdfaf
No known key found for this signature in database
GPG Key ID: 118759E83439A9B1

View File

@ -2396,8 +2396,9 @@ func (c *OpenChannel) AdvanceCommitChainTail(fwdPkg *FwdPkg,
// in their new commitment.
updateBytes := chanBucket.Get(unsignedAckedUpdatesKey)
if updateBytes == nil {
// If there are no updates to sign, we don't need to
// filter out any updates.
// This shouldn't normally happen as we always store
// the number of updates, but could still be
// encountered by nodes that are upgrading.
newRemoteCommit = &newCommit.Commitment
return nil
}