Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(discv5): config via cli #7394

Merged
merged 9 commits into from
Apr 3, 2024
Merged

feat(discv5): config via cli #7394

merged 9 commits into from
Apr 3, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Mar 30, 2024

Minimal exposure of discv5 config via CLI.

  • Adds flag to enable discv5, and flags to optionally set non-default address and port
  • Discv5 port acknowledges --instance flag, for good devex in testing
  • Other configurable params of discv5 can be incorporated as a separate PR

@emhane emhane requested a review from gakonst as a code owner March 30, 2024 02:42
@emhane emhane marked this pull request as draft March 30, 2024 02:42
@emhane emhane mentioned this pull request Mar 30, 2024
@emhane emhane changed the title Checkout network args from emhane/discv5-support feat(discv5): config via cli Mar 30, 2024
@emhane emhane marked this pull request as ready for review April 2, 2024 23:03
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

q re builder function

Comment on lines +778 to +780
// work around since discv5 config builder can't be integrated into network config builder
// due to unsatisfied trait bounds
config.discovery_v5_with_config_builder(|builder| {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is that?

Copy link
Member Author

Choose a reason for hiding this comment

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

serialise and deserialise trait isn't implemented for discv5

@emhane emhane added this pull request to the merge queue Apr 3, 2024
Merged via the queue into main with commit 3cafd58 Apr 3, 2024
28 checks passed
@emhane emhane deleted the emhane/discv5-args branch April 3, 2024 12:37
@emhane emhane mentioned this pull request Apr 4, 2024
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
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.

2 participants