aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-10 17:39:11 +0800
committerobscuren <geffobscura@gmail.com>2014-09-10 17:39:11 +0800
commitc0187930dc352c645c223e17364623a68413cb74 (patch)
tree4397d17557063fe0b0c30791b9737b1b76a65654 /peer.go
parent2f362509b813573f533a5be437c140355ddec7fc (diff)
downloadgo-tangerine-c0187930dc352c645c223e17364623a68413cb74.tar.gz
go-tangerine-c0187930dc352c645c223e17364623a68413cb74.tar.zst
go-tangerine-c0187930dc352c645c223e17364623a68413cb74.zip
Removed some commented code
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index a7259d712..5ca3ed641 100644
--- a/peer.go
+++ b/peer.go
@@ -694,7 +694,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
}
// Handle the pub key (validation, uniqueness)
- if pub == nil || len(pub) == 0 {
+ if len(pub) == 0 {
peerlogger.Warnln("Pubkey required, not supplied in handshake.")
p.Stop()
return