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

Add PeerId config to commonwealth, add create-peer-id.js #9353

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

raykyri
Copy link
Collaborator

@raykyri raykyri commented Sep 26, 2024

Link to Issue

Closes: #9352

Description of Changes

Replaces START_LIBP2P with PEER_ID inside the Commonwealth server config, and add it as an optional value in the Zod config.

Test Plan

Try starting commonwealth twice with PEER_ID set (use scripts/create-peer-id.js to generate a peer ID) and note that libp2p gets started with the same peer ID.

Deployment Plan

  • run pnpm create-peer-id locally
  • set the PEER_ID as a heroku environment variable using heroku config:set

Other Considerations

n/a

@raykyri raykyri marked this pull request as ready for review September 26, 2024 16:09
packages/network-explorer/create-peer-id.js Outdated Show resolved Hide resolved
packages/commonwealth/scripts/create-peer-id.ts Outdated Show resolved Hide resolved
@raykyri raykyri added the deployment plan (PRs only) requires manual infrastructure changes on release label Sep 26, 2024
@timolegros timolegros self-requested a review October 3, 2024 15:03
@raykyri raykyri requested a review from Rotorsoft October 3, 2024 15:04
@raykyri raykyri changed the title Add PeerId configurator to commonwealth, add create-peer-id.js Add PeerId config to commonwealth, add create-peer-id.js Oct 3, 2024
Copy link
Contributor

@Rotorsoft Rotorsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works as expected

@ilijabojanovic ilijabojanovic merged commit 73b9031 into master Oct 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment plan (PRs only) requires manual infrastructure changes on release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configuring PEER_ID to enable peering
4 participants