gossiper: validate our own node announement
This commit is contained in:
1 file changed
-2
@@ -1577,7 +1577,6 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(
|
|||||||
case *lnwire.NodeAnnouncement:
|
case *lnwire.NodeAnnouncement:
|
||||||
timestamp := time.Unix(int64(msg.Timestamp), 0)
|
timestamp := time.Unix(int64(msg.Timestamp), 0)
|
||||||
|
|
||||||
if nMsg.isRemote {
|
|
||||||
// We'll quickly ask the router if it already has a
|
// We'll quickly ask the router if it already has a
|
||||||
// newer update for this node so we can skip validating
|
// newer update for this node so we can skip validating
|
||||||
// signatures if not required.
|
// signatures if not required.
|
||||||
@@ -1593,7 +1592,6 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(
|
|||||||
nMsg.err <- err
|
nMsg.err <- err
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
features := lnwire.NewFeatureVector(
|
features := lnwire.NewFeatureVector(
|
||||||
msg.Features, lnwire.GlobalFeatures,
|
msg.Features, lnwire.GlobalFeatures,
|
||||||
|
|||||||
Reference in new issue
Block a user