Merge pull request #5231 from Crypt-iQ/unsigned_ack_patch_04212021
lnwallet: use tail not tip in getUnsignedAckedUpdates
This commit is contained in:
3 files changed
+128
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user