From 9d0d5bdfaf130af695cbb420a774da1bf028aa8f Mon Sep 17 00:00:00 2001 From: eugene Date: Wed, 21 Apr 2021 17:36:51 -0400 Subject: [PATCH] channeldb: AdvanceCommitChainTail clarification comment --- channeldb/channel.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/channeldb/channel.go b/channeldb/channel.go index 9d8e0199..cc339d5e 100644 --- a/channeldb/channel.go +++ b/channeldb/channel.go @@ -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 }