discovery: remove redundant signature setting
The signature is retrieved, not used and overwritten with a new signature.
This commit is contained in:
parent
20a5ee2f1e
commit
5090bb27ad
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user