Skip to content

feat: customizable discovery defaults#23843

Merged
klkvr merged 2 commits into
mainfrom
klkvr/discovery-defaults
Apr 29, 2026
Merged

feat: customizable discovery defaults#23843
klkvr merged 2 commits into
mainfrom
klkvr/discovery-defaults

Conversation

@klkvr
Copy link
Copy Markdown
Member

@klkvr klkvr commented Apr 29, 2026

Adds DefaultDiscoveryArgs allowing to customize default values for discovery CLI args.

More importantly, this PR changes discv5 port fields to be Options instead. When those fields are None, the regular --discovery.port is used, starting discv4 and discv5 on the same port as enabled by #23613

Default behavior for reth is to still start discv5 on port 9200 but custom clients can now change this behavior by setting default values for discv5 port fields to None and thus defaulting to both protocols launching at --discovery.port

@github-project-automation github-project-automation Bot moved this from Backlog to In Progress in Reth Tracker Apr 29, 2026
@mattsse mattsse requested a review from gakonst as a code owner April 29, 2026 21:36
@mattsse mattsse enabled auto-merge April 29, 2026 21:43
@mattsse mattsse added this pull request to the merge queue Apr 29, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 29, 2026
@klkvr klkvr added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit d25de30 Apr 29, 2026
34 checks passed
@klkvr klkvr deleted the klkvr/discovery-defaults branch April 29, 2026 23:09
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Reth Tracker Apr 29, 2026
Thegreatsura pushed a commit to Thegreatsura/tempo that referenced this pull request May 1, 2026
Automated nightly update of reth dependencies from `paradigmxyz/reth`
main branch.

## Upstream reth changes


[`077e5ee...fcfa828`](paradigmxyz/reth@077e5ee...fcfa828)

🔗 Amp thread:
https://ampcode.com/threads/T-019ddc9d-1d46-75e9-b9e8-644c7bd4c595
- **Engine**: Apply finalized state after syncing FCU head import
([#23838](paradigmxyz/reth#23838))
- **Networking**: Customizable discovery defaults
([#23843](paradigmxyz/reth#23843))
- **DB**: Replace deprecated `MDBX_NOTLS` with `MDBX_NOSTICKYTHREADS`
([#23378](paradigmxyz/reth#23378))

## Migrations

🔗 Amp thread:
https://ampcode.com/threads/T-019ddc9d-2d98-72cb-aac1-a4da293cbabf
- Bumped all `reth-*` git dependencies in `Cargo.toml` from rev
`077e5ee` to `fcfa828` to pull in the latest upstream Reth SDK changes.

[GitHub
Workflow](https://github.com/tempoxyz/tempo/actions/runs/25147002830)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants