mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
feat: expose table nodes
Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
parent
d8b9298f35
commit
bd1f98c24a
1 changed files with 5 additions and 0 deletions
|
|
@ -792,6 +792,11 @@ func (t *UDPv5) GetNode(id enode.ID) *enode.Node {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Nodes returns the nodes in the routing table.
|
||||||
|
func (t *UDPv5) Nodes() [][]BucketNode {
|
||||||
|
return t.tab.Nodes()
|
||||||
|
}
|
||||||
|
|
||||||
// handle processes incoming packets according to their message type.
|
// handle processes incoming packets according to their message type.
|
||||||
func (t *UDPv5) handle(p v5wire.Packet, fromID enode.ID, fromAddr netip.AddrPort) {
|
func (t *UDPv5) handle(p v5wire.Packet, fromID enode.ID, fromAddr netip.AddrPort) {
|
||||||
switch p := p.(type) {
|
switch p := p.(type) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue