discovery: remove redundant signature setting

The signature is retrieved, not used and overwritten with a
new signature.
This commit is contained in:
Joost Jager 2019-09-23 12:17:30 +02:00
parent 20a5ee2f1e
commit 5090bb27ad
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

View File

@ -2543,12 +2543,6 @@ func (d *AuthenticatedGossiper) updateChannel(info *channeldb.ChannelEdgeInfo,
ExtraOpaqueData: edge.ExtraOpaqueData,
}
var err error
chanUpdate.Signature, err = lnwire.NewSigFromRawSignature(edge.SigBytes)
if err != nil {
return nil, nil, err
}
// With the update applied, we'll generate a new signature over a
// digest of the channel announcement itself.
sig, err := SignAnnouncement(d.cfg.AnnSigner, d.selfKey, chanUpdate)