aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/net.go
diff options
context:
space:
mode:
authorthomasmodeneis <thomas.modeneis@gmail.com>2018-04-18 06:53:50 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-18 06:53:50 +0800
commitba1030b6b84f810c04a82221a1b1c0a3dbf499a8 (patch)
tree9c3450535acddfec3b1987e0a2e04fa9ca303e38 /p2p/discv5/net.go
parent7605e63cb9dda7fc5bb619abf1eb1f74ac3f6cc1 (diff)
downloadgo-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.gz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.bz2
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.lz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.xz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.zst
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.zip
build: enable goimports and varcheck linters (#16446)
Diffstat (limited to 'p2p/discv5/net.go')
-rw-r--r--p2p/discv5/net.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go
index 52c677b62..9b0bd0c80 100644
--- a/p2p/discv5/net.go
+++ b/p2p/discv5/net.go
@@ -36,7 +36,6 @@ import (
var (
errInvalidEvent = errors.New("invalid in current state")
errNoQuery = errors.New("no pending query")
- errWrongAddress = errors.New("unknown sender address")
)
const (
@@ -828,11 +827,10 @@ type nodeEvent uint
//go:generate stringer -type=nodeEvent
const (
- invalidEvent nodeEvent = iota // zero is reserved
// Packet type events.
// These correspond to packet types in the UDP protocol.
- pingPacket
+ pingPacket = iota + 1
pongPacket
findnodePacket
neighborsPacket