go-ethereum/p2p/discover
Felix Lange ac86547b01
p2p/discover: add Table configuration and Nodes method (#27387)
* p2p/discover: remove ReadRandomNodes

Even though it's public, this method is not callable by code outside of
package p2p/discover because one can't get a valid instance of Table.

* p2p/discover: add Table.Nodes

* p2p/discover: make Table settings configurable

In unit tests and externally developed cmd/devp2p test runs, it can be
useful to tune the timer intervals used by Table.
2023-05-31 13:37:10 +02:00
..
v4wire all: fix docstrings 2022-10-04 09:18:02 +02:00
v5wire p2p/discover: concurrent TALKREQ handling (#27112) 2023-04-28 11:03:43 +02:00
common.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
lookup.go p2p: use errors.Is for error comparison (#24882) 2022-06-07 17:27:21 +02:00
metrics.go p2p/discover: add traffic metrics (#27008) 2023-04-25 12:12:34 +02:00
node.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
ntp.go p2p/discover: fix typos in comments (#25272) 2022-07-10 10:15:54 +02:00
table.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
table_test.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
table_util_test.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
v4_lookup_test.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
v4_udp.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
v4_udp_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
v5_talk.go p2p/discover: concurrent TALKREQ handling (#27112) 2023-04-28 11:03:43 +02:00
v5_udp.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
v5_udp_test.go p2p: initialize maps with known size (#27229) 2023-05-10 10:52:26 +02:00