aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 18:34:41 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-22 18:34:41 +0800
commita32a2b933ad6793a2fe4172cd46c5c5906da259a (patch)
tree310f084204856910fe5448a105b59fc587c5bfdf /whisper
parent04e175b8ecc95080742aa8c8be68b155433a13bf (diff)
downloadgo-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.gz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.bz2
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.lz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.xz
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.tar.zst
go-tangerine-a32a2b933ad6793a2fe4172cd46c5c5906da259a.zip
cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments (#19869)
Fixed assigning values to variables we don't end up using.
Diffstat (limited to 'whisper')
-rw-r--r--whisper/mailserver/server_test.go2
-rw-r--r--whisper/whisperv6/peer.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go
index edb817cc7..4f80e550a 100644
--- a/whisper/mailserver/server_test.go
+++ b/whisper/mailserver/server_test.go
@@ -172,7 +172,7 @@ func singleRequest(t *testing.T, server *WMailServer, env *whisper.Envelope, p *
}
src[0]++
- ok, lower, upper, bloom = server.validateRequest(src, request)
+ ok, lower, upper, _ = server.validateRequest(src, request)
if !ok {
// request should be valid regardless of signature
t.Fatalf("request validation false negative, seed: %d (lower: %d, upper: %d).", seed, lower, upper)
diff --git a/whisper/whisperv6/peer.go b/whisper/whisperv6/peer.go
index 621d51208..4451f1495 100644
--- a/whisper/whisperv6/peer.go
+++ b/whisper/whisperv6/peer.go
@@ -130,7 +130,7 @@ func (peer *Peer) handshake() error {
}
}
- isRemotePeerLightNode, err := s.Bool()
+ isRemotePeerLightNode, _ := s.Bool()
if isRemotePeerLightNode && isLightNode && isRestrictedLightNodeConnection {
return fmt.Errorf("peer [%x] is useless: two light client communication restricted", peer.ID())
}