discovery: fix linter error
This commit is contained in:
parent
157145df65
commit
0f4b9d9763
@ -62,7 +62,7 @@ func (d *AuthenticatedGossiper) validateNodeAnn(a *lnwire.NodeAnnouncement) erro
|
|||||||
// return an error so this node announcement can be rejected.
|
// return an error so this node announcement can be rejected.
|
||||||
dataHash := chainhash.DoubleHashB(data)
|
dataHash := chainhash.DoubleHashB(data)
|
||||||
if !a.Signature.Verify(dataHash, copyPubKey(a.NodeID)) {
|
if !a.Signature.Verify(dataHash, copyPubKey(a.NodeID)) {
|
||||||
return errors.New("signature on node announcement is invalid!")
|
return errors.New("signature on node announcement is invalid")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user