channeldb: invalidate channel signature cache on update

This commit is contained in:
Joost Jager committed 2019-09-23 13:07:04 +02:00
1 parent 5090bb27ad
commit 339ff357d1
2 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -2552,7 +2552,7 @@ func (d *AuthenticatedGossiper) updateChannel(info *channeldb.ChannelEdgeInfo,
// Next, we'll set the new signature in place, and update the reference
// in the backing slice.
edge.SigBytes = sig.Serialize()
edge.SetSigBytes(sig.Serialize())
chanUpdate.Signature, err = lnwire.NewSigFromSignature(sig)
if err != nil {
return nil, nil, err