aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/udp.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-09-30 11:21:03 +0800
committerFelix Lange <fjl@twurst.com>2015-09-30 22:23:03 +0800
commit32dda976020f8ec756fa65e7764f41e9d42dbef4 (patch)
tree241293bcbd6a23221b11bd941853935b83c2a60e /p2p/discover/udp.go
parent631bf361026676560b2995563fcf1324347a13a1 (diff)
downloaddexon-32dda976020f8ec756fa65e7764f41e9d42dbef4.tar.gz
dexon-32dda976020f8ec756fa65e7764f41e9d42dbef4.tar.zst
dexon-32dda976020f8ec756fa65e7764f41e9d42dbef4.zip
p2p/discover: ignore packet version numbers
The strict matching can get in the way of protocol upgrades.
Diffstat (limited to 'p2p/discover/udp.go')
-rw-r--r--p2p/discover/udp.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go
index 8f62598f2..20f69cf08 100644
--- a/p2p/discover/udp.go
+++ b/p2p/discover/udp.go
@@ -39,7 +39,6 @@ var (
errPacketTooSmall = errors.New("too small")
errBadHash = errors.New("bad hash")
errExpired = errors.New("expired")
- errBadVersion = errors.New("version mismatch")
errUnsolicitedReply = errors.New("unsolicited reply")
errUnknownNode = errors.New("unknown node")
errTimeout = errors.New("RPC timeout")
@@ -522,9 +521,6 @@ func (req *ping) handle(t *udp, from *net.UDPAddr, fromID NodeID, mac []byte) er
if expired(req.Expiration) {
return errExpired
}
- if req.Version != Version {
- return errBadVersion
- }
t.send(from, pongPacket, pong{
To: makeEndpoint(from, req.From.TCP),
ReplyTok: mac,