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: allow DNS names in peers/seeds list and resolve them #3125

Merged
merged 8 commits into from
Feb 14, 2020

Conversation

JosephGoulden
Copy link
Contributor

@JosephGoulden JosephGoulden commented Nov 18, 2019

This change is for after 3.0 release/branch

Enhancement to allow DNS names in the config for seeds, allow/deny/preferred peers and dandelion peer. Fixes #3120

Port is always required otherwise a panic will occur when attempting to parse the domain name.
There is a slight confusion caused by the seed type of DNSSeed, as the List type can now contain DNS seeds as well. Maybe DNSSeed could be deprecated in favour of DefaultSeed.

I've manually tested adding DNS names peers list and works as expected.

p2p/src/types.rs Outdated Show resolved Hide resolved
Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

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

Looking good. Two comments below:

servers/src/grin/seed.rs Outdated Show resolved Hide resolved
p2p/src/types.rs Show resolved Hide resolved
@antiochp
Copy link
Member

antiochp commented Dec 9, 2019

We should hold off merging this until after 3.0.0 is released. This is potentially wide-reaching in terms of its effect on the network as a whole.

@JosephGoulden Can you add something to the top of the PR description to remind us?

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

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

Now that we are post 3.0.0 we can revisit this. Could you fix the merge conflicts? Thank you!

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

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

Looking good to me. Would be good to have a second review though.

@DavidBurkett
Copy link
Contributor

3.0.0 has long been released. Should we get this merged now?

Copy link
Member

@antiochp antiochp left a comment

Choose a reason for hiding this comment

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

👍

@antiochp antiochp merged commit 0d2e58e into mimblewimble:master Feb 14, 2020
@antiochp antiochp mentioned this pull request Feb 24, 2020
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.

allow FQDN in peers section
5 participants