-
Notifications
You must be signed in to change notification settings - Fork 70
wire: Rework dns seeds #462
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
wire: Rework dns seeds #462
Conversation
bbce4c0 to
e49681f
Compare
|
Rebased with master after #454. Marking as ready for review. |
Yeah currently we always use the OS DNS resolver (via the |
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.
C ack e49681f
e49681f to
1bdde83
Compare
|
Updated with @jaoleal's comments |
|
ack 1bdde83 |
1bdde83 to
20243d7
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.
Nice! Only a couple of nits
20243d7 to
7cb4cc6
Compare
|
Updated with @JoseSK999's comments. |
The current code for dns seeds is very frustrating: it asks for addresses even when we don't need, it takes a while to return (holding the node meanwhile), can't be disabled. This commit reworks that to fix those problems. The dns seed code now only runs after we've been more than one minute and we haven't seen at least one connection. It runs on the background and notifies the node back one it's finished. I've also added an option to disable the dns seeds. This could be useful for privacy reasons (don't want to leak to my dns provider that I use bitcoin).
7cb4cc6 to
9264e5c
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.
ACK 9264e5c
What is the purpose of this pull request?
Which crates are being modified?
Description
Depends on #454
The current code for dns seeds is very frustrating: it asks for
addresses even when we don't need, it takes a while to return (holding
the node meanwhile), can't be disabled.
This commit reworks that to fix those problems. The dns seed code now
only runs after we've been more than one minute and we haven't seen at
least one connection. It runs on the background and notifies the node
back one it's finished.
I've also added an option to disable the dns
seeds. This could be useful for privacy reasons (don't want to leak to
my dns provider that I use bitcoin).
Checklist
just lintcargo test