Skip to content

Allow wiring single paths#507

Open
clauBv23 wants to merge 5 commits intomainfrom
allow-wiring-single-paths
Open

Allow wiring single paths#507
clauBv23 wants to merge 5 commits intomainfrom
allow-wiring-single-paths

Conversation

@clauBv23
Copy link
Contributor

@clauBv23 clauBv23 commented Feb 13, 2026

  • Allow defining allowed peers to only wire those paths instead of the full mesh

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: d3c6afd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces an optional allowlist mechanism for peer connections in chain configurations, allowing specific chains to wire connections only to designated peers instead of the full mesh network.

Changes:

  • Added allowed_peers field to chain configuration interface and templates
  • Enhanced filterConnections function with type safety and peer allowlist filtering
  • Added beforeEach hook to test suite to ensure proper stage initialization

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/stg-evm-v2/devtools/config/utils.ts Added allowed_peers field to Chain interface, implemented peer filtering logic (isPeerAllowed, isAllowedPeerConnection), and enhanced filterConnections with type safety and peer validation
packages/stg-evm-v2/devtools/config/testnet/chainsConfig/0-template-chain.yml Added allowed_peers field to testnet chain template with documentation
packages/stg-evm-v2/devtools/config/mainnet/01/chainsConfig/0-template-chain.yml Added allowed_peers field to mainnet chain template with documentation
packages/stg-evm-v2/test/devtools/utils.test.ts Added beforeEach hook to set stage for filterConnections test suite

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ravinagill15
ravinagill15 previously approved these changes Feb 13, 2026
Copy link
Collaborator

@ravinagill15 ravinagill15 left a comment

Choose a reason for hiding this comment

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

Let's add a changeset too

@clauBv23
Copy link
Contributor Author

Let's add a changeset too

@ravinagill15, I will merge #508 into this branch and will update the change set, adding the modifications on this PR

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.

2 participants