go-ethereum/p2p/enode
Felix Lange 228803c1a2
p2p/enode: add support for naming iterator sources (#31779)
This adds support for naming the source iterators of FairMix, like so:

  mix.AddSource(enode.WithSourceName("mySource", iter))

The source that produced the latest node is returned by the new NodeSource method.
2025-05-15 14:17:58 +02:00
..
idscheme.go p2p/enode: fix endpoint determination for IPv6 (#29801) 2024-05-23 14:27:03 +02:00
idscheme_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
iter.go p2p/enode: add support for naming iterator sources (#31779) 2025-05-15 14:17:58 +02:00
iter_test.go p2p/enode: add support for naming iterator sources (#31779) 2025-05-15 14:17:58 +02:00
localnode.go p2p: use netip.Addr where possible (#29891) 2024-06-05 19:31:04 +02:00
localnode_test.go p2p: use netip.Addr where possible (#29891) 2024-06-05 19:31:04 +02:00
node.go p2p: DNS resolution for static nodes (#30822) 2024-12-13 12:46:12 +01:00
node_test.go p2p: DNS resolution for static nodes (#30822) 2024-12-13 12:46:12 +01:00
nodedb.go p2p/discover: fix flaky tests writing to test.log after completion (#30506) 2024-09-26 08:12:12 +02:00
nodedb_test.go p2p: use netip.Addr where possible (#29891) 2024-06-05 19:31:04 +02:00
urlv4.go p2p: DNS resolution for static nodes (#30822) 2024-12-13 12:46:12 +01:00
urlv4_test.go p2p: DNS resolution for static nodes (#30822) 2024-12-13 12:46:12 +01:00