Skip to content

fix: do not dial bootstrap nodes #3087

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

achingbrain
Copy link
Member

Updates the bootstrap module to only discover the bootstrap nodes but not dial them.

Invidiual protocols that require bootstrapping (e.g. KAD-DHT) can then react to the disovery and choose to dial the peers.

This cuts down on unecessary dials for lightweight nodes and brings the bootstrap module in line with other peer discovery mechanisms.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Updates the bootstrap module to only discover the bootstrap nodes
but not dial them.

Invidiual protocols that require bootstrapping (e.g. KAD-DHT) can
then react to the disovery and choose to dial the peers.

This cuts down on unecessary dials for lightweight nodes and brings
the bootstrap module in line with other peer discovery mechanisms.
@achingbrain achingbrain force-pushed the fix/do-not-dial-bootstrap-nodes branch from 052da78 to fb73ed4 Compare April 17, 2025 10:22
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.

1 participant