Skip to content

fix(js-peer): hardcode relay bootstrap multiaddrs#347

Open
NiKrause wants to merge 2 commits into
libp2p:mainfrom
NomadKids:fix/upstream-hardcoded-bootstrap
Open

fix(js-peer): hardcode relay bootstrap multiaddrs#347
NiKrause wants to merge 2 commits into
libp2p:mainfrom
NomadKids:fix/upstream-hardcoded-bootstrap

Conversation

@NiKrause

@NiKrause NiKrause commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the js-peer bootstrap path by replacing delegated bootstrap address discovery with a static list of known-good relay multiaddrs.

It addresses #340.

What changed

  • hardcode the relay bootstrap multiaddr set in js-peer/src/lib/constants.ts
  • remove the delegated-routing-based bootstrap lookup path from js-peer/src/lib/libp2p.ts
  • simplify discovery dialing so discovered addresses are handed directly to libp2p.dial(...)

Why

For the immediate fix, we already know the relay multiaddrs we want to use, so hardcoding them gives the browser a deterministic bootstrap path and avoids depending on delegated routing for this specific relay.

Impact

  • js-peer should connect to the relay immediately on startup using the bundled multiaddrs

@NiKrause

Copy link
Copy Markdown
Contributor Author

The checks failed because the PR #346 was not yet merged. We are no longer publishing to IPFS but deploying to Github pages for now.

@NiKrause NiKrause marked this pull request as ready for review June 12, 2026 19:33
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