aboutsummaryrefslogtreecommitdiffstats
path: root/les/protocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'les/protocol.go')
-rw-r--r--les/protocol.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/protocol.go b/les/protocol.go
index e1c4625bc..46bff2635 100644
--- a/les/protocol.go
+++ b/les/protocol.go
@@ -160,9 +160,8 @@ func (a *announceData) checkSignature(pubKey *ecdsa.PublicKey) error {
pbytes := elliptic.Marshal(pubKey.Curve, pubKey.X, pubKey.Y)
if bytes.Equal(pbytes, recPubkey) {
return nil
- } else {
- return errors.New("Wrong signature")
}
+ return errors.New("Wrong signature")
}
type blockInfo struct {