go-ethereum/p2p/enode
Csaba Kiraly 4bb097b7ff
Some checks are pending
/ Linux Build (arm) (push) Waiting to run
/ Linux Build (push) Waiting to run
/ Docker Image (push) Waiting to run
eth, p2p: improve dial speed by pre-fetching dial candidates (#31944)
This PR improves the speed of Disc/v4 and Disc/v5 based discovery by
adding a prefetch buffer to discovery sources, eliminating slowdowns
due to timeouts and rate mismatch between the two processes.

Since we now want to filter the discv4 nodes iterator, it is being removed
from the default discovery mix in p2p.Server. To keep backwards-compatibility,
the default unfiltered discovery iterator will be utilized by the server when
no protocol-specific discovery is configured.

---------

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-06-05 12:14:35 +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 eth, p2p: improve dial speed by pre-fetching dial candidates (#31944) 2025-06-05 12:14:35 +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