discover updated

This commit is contained in:
AnilChinchawale 2019-02-12 04:52:08 +05:30
parent 30994df508
commit e5ee0b3a6a
3 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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
}
}

View file

@ -319,4 +319,4 @@ func (self *SimNode) NodeInfo() *p2p.NodeInfo {
}
}
return server.NodeInfo()
}
}