Merge pull request #5231 from Crypt-iQ/unsigned_ack_patch_04212021

lnwallet: use tail not tip in getUnsignedAckedUpdates
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2021-05-07 12:46:48 -07:00
commit 1868c7dec1
3 files changed
+128 -3

No files matched your search

+3 -2
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
}