cmd/devp2p: add devp2p debug tool (#19657)
* 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
Showing
- cmd/devp2p/discv4cmd.go 166 additions, 0 deletionscmd/devp2p/discv4cmd.go
- cmd/devp2p/enrcmd.go 198 additions, 0 deletionscmd/devp2p/enrcmd.go
- cmd/devp2p/main.go 68 additions, 0 deletionscmd/devp2p/main.go
- p2p/discover/table.go 2 additions, 2 deletionsp2p/discover/table.go
- p2p/discover/table_util_test.go 1 addition, 1 deletionp2p/discover/table_util_test.go
- p2p/discover/v4_udp.go 11 additions, 5 deletionsp2p/discover/v4_udp.go
Loading
Please register or sign in to comment