mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
discovery: remove redundant signature setting
The signature is retrieved, not used and overwritten with a new signature.
This commit is contained in:
@ -2543,12 +2543,6 @@ func (d *AuthenticatedGossiper) updateChannel(info *channeldb.ChannelEdgeInfo,
|
|||||||
ExtraOpaqueData: edge.ExtraOpaqueData,
|
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
|
// With the update applied, we'll generate a new signature over a
|
||||||
// digest of the channel announcement itself.
|
// digest of the channel announcement itself.
|
||||||
sig, err := SignAnnouncement(d.cfg.AnnSigner, d.selfKey, chanUpdate)
|
sig, err := SignAnnouncement(d.cfg.AnnSigner, d.selfKey, chanUpdate)
|
||||||
|
Reference in New Issue
Block a user