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