Skip to content

Sync p2p code with go-ethereum to fix netrestrict issues in v5 discovery#18933

Open
anacrolix wants to merge 15 commits intomainfrom
anacrolix/netrestrict-p2p-refresh
Open

Sync p2p code with go-ethereum to fix netrestrict issues in v5 discovery#18933
anacrolix wants to merge 15 commits intomainfrom
anacrolix/netrestrict-p2p-refresh

Conversation

@anacrolix
Copy link
Contributor

@anacrolix anacrolix commented Feb 3, 2026

Fixes #18195.

This started as an attempt to carefully pull fixes for possible issues with netrestrict to discovering the upstream changes are quite significant.

Note: This is only a draft. I'm experimenting with Claude for analyzing large diffs at the same time, but all observations are helpful.

@anacrolix anacrolix force-pushed the anacrolix/netrestrict-p2p-refresh branch from 343dfd7 to 7871caf Compare February 3, 2026 06:56
@anacrolix anacrolix force-pushed the anacrolix/netrestrict-p2p-refresh branch from d4b07ac to db09ff4 Compare February 4, 2026 04:10
@anacrolix anacrolix marked this pull request as ready for review February 9, 2026 03:42
@AskAlexSharov
Copy link
Collaborator

run bench and compare with main:

go test -bench=. -run=Brench -benchmem -count=10 ./execution/rlp > old.txt
go test -bench=. -run=Brench -benchmem -count=10 ./execution/rlp > new.txt
benchstat old.txt new.txt

github.com/edsrzf/mmap-go v1.2.0
github.com/elastic/go-freelru v0.16.0
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab
github.com/ethereum/go-ethereum v1.16.8
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot remove this line

go.mod Outdated
github.com/quic-go/quic-go v0.49.1
github.com/rs/cors v1.11.1
github.com/rs/dnscache v0.0.0-20211102005908-e0241e321417
github.com/shirou/gopsutil v3.21.11+incompatible
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would advise update gopsutil in dedicated PR - because we often reverted it in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EL P2P: refresh discv5 implementation and turn it on

3 participants