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

Use DiscoveryV5 as a source of peers #29533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hkalina
Copy link

@hkalina hkalina commented Apr 15, 2024

In the current version, when DiscoveryV5 is enabled, it runs and discovers peers, however they are not pushed into the dialScheduler, so they are actually not used.

@karalabe
Copy link
Member

@fjl Should we start using discv5 for full nodes? AFAIK we're not currently using it at all anywhere

@fjl
Copy link
Contributor

fjl commented Apr 16, 2024

Yes we could. But if it's enabled like in this PR, there wont be any filtering. There is currently a circular dependency in the stack where the discovery instance is not available until the client was started, but we'd need to access it earlier to create the filtered node stream. I will solve it, but it's not as easy as this PR.

@hkalina
Copy link
Author

hkalina commented Apr 16, 2024

Ok, feel free to close this, if you are going to handle it by a different way.

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.

None yet

3 participants