HomeSource World

p2p/discover: add helper methods to UDPv5 (#20918)

Authored by Nishant Das <nish1993@hotmail.com> on Apr 16 2020, 1:58 PM.

Description

p2p/discover: add helper methods to UDPv5 (#20918)

This adds two new methods to UDPv5, AllNodes and LocalNode.

AllNodes returns all the nodes stored in the local table; this is
useful for the purposes of metrics collection and also debugging any
potential issues with other discovery v5 implementations.

LocalNode returns the local node object. The reason for exposing this
is so that users can modify and set/delete new key-value entries in
the local record.

Details

Committed
GitHub <noreply@github.com>Apr 16 2020, 1:58 PM
Parents
rGETH3bf1054a13f2: params: begin v1.9.14 release cycle
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH7a63faf734d7: p2p/discover: add helper methods to UDPv5 (#20918) (authored by Nishant Das <nish1993@hotmail.com>).Apr 16 2020, 1:58 PM