From e5ee0b3a6af209be2f34038d7ca6a28e00bc49c2 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Tue, 12 Feb 2019 04:52:08 +0530 Subject: [PATCH] discover updated --- p2p/discover/udp.go | 2 +- p2p/discover/udp_test.go | 2 +- p2p/simulations/adapters/inproc.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go index de82db08fd..5c6447ebca 100644 --- a/p2p/discover/udp.go +++ b/p2p/discover/udp.go @@ -596,7 +596,7 @@ func (req *ping) handle(t *udp, from *net.UDPAddr, fromID NodeID, mac []byte) er return nil } -func (req *ping) name() string { return "XDC/v4" } +func (req *ping) name() string { return "PING XDC/v4" } func (req *pong) handle(t *udp, from *net.UDPAddr, fromID NodeID, mac []byte) error { if expired(req.Expiration) { diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go index 0e67b7b3ca..cf186c4b85 100644 --- a/p2p/discover/udp_test.go +++ b/p2p/discover/udp_test.go @@ -557,4 +557,4 @@ func (c *dgramPipe) waitPacketOut() []byte { copy(c.queue, c.queue[1:]) c.queue = c.queue[:len(c.queue)-1] return p -} \ No newline at end of file +} diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go index 2e831d241b..cb333f797e 100644 --- a/p2p/simulations/adapters/inproc.go +++ b/p2p/simulations/adapters/inproc.go @@ -319,4 +319,4 @@ func (self *SimNode) NodeInfo() *p2p.NodeInfo { } } return server.NodeInfo() -} \ No newline at end of file +}