Skip to content

Prioritize Selected Chain RPC Provider for System Chains#11764

Merged
ap211unitech merged 2 commits into
masterfrom
fix/rpc-selection-logic
Aug 19, 2025
Merged

Prioritize Selected Chain RPC Provider for System Chains#11764
ap211unitech merged 2 commits into
masterfrom
fix/rpc-selection-logic

Conversation

@ap211unitech
Copy link
Copy Markdown
Member

📝 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:

  • Preserve user intent.
  • Increase predictability and reliability in RPC connections.
  • Leverage potentially better latency and reliability from the same provider’s network.

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

@helixstreet
Copy link
Copy Markdown
Contributor

Thanks indeed for this PR!

@ap211unitech ap211unitech merged commit b997839 into master Aug 19, 2025
5 checks passed
@ap211unitech ap211unitech deleted the fix/rpc-selection-logic branch August 19, 2025 03:30
@polkadot-js-bot
Copy link
Copy Markdown

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.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Aug 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Predictable RPC Provider Selection for System Chains

4 participants