aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/v4_udp.go
Commit message (Collapse)AuthorAgeFilesLines
* all: update author list and licensesPéter Szilágyi2019-07-221-1/+1
|
* cmd/devp2p: add devp2p debug tool (#19657)Felix Lange2019-06-071-5/+11
| | | | | | | | | | | | | | | | | * p2p/discover: export Ping and RequestENR These two are useful for checking the status of a node. * cmd/devp2p: add devp2p debug tool This is a new tool for debugging p2p issues. It supports a few basic tasks for now, but many more things can and will be added in the near future. devp2p enrdump -- prints ENRs readably devp2p discv4 ping -- checks if a node is up devp2p discv4 requestenr -- gets a node's record devp2p discv4 resolve -- finds a node through the DHT
* p2p/discover: fix crash in Resolve (#19579)Felix Lange2019-05-151-3/+3
|
* p2p/discover: add support for EIP-868 (v4 ENR extension) (#19540)Felix Lange2019-05-151-72/+232
| | | | | | | | This change implements EIP-868. The UDPv4 transport announces support for the extension in ping/pong and handles enrRequest messages. There are two uses of the extension: If a remote node announces support for EIP-868 in their pong, node revalidation pulls the node's record. The Resolve method requests the record unconditionally.
* p2p/discover: fix a race where table loop would self-lookup before returning ↵Martin Holst Swende2019-05-131-0/+1
| | | | from constructor
* p2p/discover: split out discv4 codeFelix Lange2019-04-301-0/+870
This change restructures the internals of p2p/discover to make room for the discv5 code which will soon be added to this package. - packet type names now have a "V4" suffix. - ListenUDP returns *UDPv4 instead of *Table. This technically breaks the API but the only caller in go-ethereum is package p2p, which uses a compatible interface and doesn't need changes. - The internal transport interface is changed to make Table reusable for v5. - The 'lookup' code moves from table to transport. This required updating the lookup unit test to use udpTest instead of a custom transport.