feat(net): enforce EIP-868 fork ID for discovered peers (#22013)

Co-authored-by: Emma <emma@tempo.xyz>
Co-authored-by: Matthias Seitz <mattsse@users.noreply.github.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Emma Jamieson-Hoare <ejamieson19@gmail.com>
Co-authored-by: Emma Jamieson-Hoare <emmajam@users.noreply.github.com>
This commit is contained in:
Georgios Konstantopoulos
2026-02-12 10:29:37 -05:00
committed by GitHub
parent 4a62d38af2
commit 0b8e6c6ed3
12 changed files with 102 additions and 24 deletions

View File

@@ -293,6 +293,11 @@ Networking:
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
--enforce-enr-fork-id
Enforce EIP-868 ENR fork ID validation for discovered peers.
When enabled, peers discovered without a confirmed fork ID are not added to the peer set until their fork ID is verified via EIP-868 ENR request. This filters out peers from other networks that pollute the discovery table.
RPC:
--http
Enable the HTTP-RPC server

View File

@@ -233,6 +233,11 @@ Networking:
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
--enforce-enr-fork-id
Enforce EIP-868 ENR fork ID validation for discovered peers.
When enabled, peers discovered without a confirmed fork ID are not added to the peer set until their fork ID is verified via EIP-868 ENR request. This filters out peers from other networks that pollute the discovery table.
Datadir:
--datadir <DATA_DIR>
The path to the data dir for all reth files and subdirectories.

View File

@@ -233,6 +233,11 @@ Networking:
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
--enforce-enr-fork-id
Enforce EIP-868 ENR fork ID validation for discovered peers.
When enabled, peers discovered without a confirmed fork ID are not added to the peer set until their fork ID is verified via EIP-868 ENR request. This filters out peers from other networks that pollute the discovery table.
Datadir:
--datadir <DATA_DIR>
The path to the data dir for all reth files and subdirectories.

View File

@@ -460,6 +460,11 @@ Networking:
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
--enforce-enr-fork-id
Enforce EIP-868 ENR fork ID validation for discovered peers.
When enabled, peers discovered without a confirmed fork ID are not added to the peer set until their fork ID is verified via EIP-868 ENR request. This filters out peers from other networks that pollute the discovery table.
Logging:
--log.stdout.format <FORMAT>
The format to use for logs written to stdout