-
Notifications
You must be signed in to change notification settings - Fork 990
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
Conversation
1d5aa8f
to
77703e8
Compare
There was a problem hiding this 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:
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? |
There was a problem hiding this 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!
There was a problem hiding this 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.
3.0.0 has long been released. Should we get this merged now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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.