Prioritize Selected Chain RPC Provider for System Chains#11764
Merged
Conversation
Contributor
|
Thanks indeed for this PR! |
valentinfernandez1
approved these changes
Aug 18, 2025
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Currently, when a user selects a specific RPC provider for a relay chain (e.g., Kusama), Polkadot.js randomly selects RPC providers for the required system chains (e.g., people, coretime, etc.).
This behavior can result in an inconsistent and sometimes unreliable user experience, as the randomly chosen system chain providers may not be as stable or performant as the user's chosen relay chain provider.
💡Motivation
The current randomization strategy for system chain RPC endpoints does not respect the user’s choice of relay chain provider, leading to inconsistent experiences. If a user has explicitly selected a provider for their relay chain, it is reasonable to assume they trust that provider’s infrastructure and would prefer to use it for associated system chains as well.
By aligning system chain RPC selection with the relay chain’s chosen provider (when available), we:
This approach ensures a more coherent and stable multi-chain browsing experience.
🖋️ Notes
This change only affects URL ordering. No functional changes to RPC connection logic or endpoint filtering are introduced. This behavior will only apply to chains that require connections with system chains.
Screen.Recording.2025-08-12.at.13.13.41.mov