From 48e32db70815aa427483111543612dcdb84711bc Mon Sep 17 00:00:00 2001 From: Chid Gilovitz Date: Thu, 14 Dec 2023 15:02:12 +0800 Subject: [PATCH] Remove polkadot and kusama unsupported rpcs (#82) * chore: remove polkadot and kusama unsupported rpcs * add removed polkadot and kusama rpcs to unreliable rpcs list --------- Co-authored-by: alecdwm --- chaindata.json | 2 -- scripts/import-pjs-config.js | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chaindata.json b/chaindata.json index 043c66ffec..94896f7995 100644 --- a/chaindata.json +++ b/chaindata.json @@ -13,7 +13,6 @@ "wss://rpc.dotters.network/polkadot", "wss://1rpc.io/dot", "wss://rpc-polkadot.luckyfriday.io", - "wss://rpc.polkadot.io", "wss://polkadot.public.curie.radiumblock.co/ws", "wss://dot-rpc.stakeworld.io" ] @@ -32,7 +31,6 @@ "wss://rpc.dotters.network/kusama", "wss://1rpc.io/ksm", "wss://rpc-kusama.luckyfriday.io", - "wss://kusama-rpc.polkadot.io", "wss://kusama.public.curie.radiumblock.co/ws", "wss://ksm-rpc.stakeworld.io" ] diff --git a/scripts/import-pjs-config.js b/scripts/import-pjs-config.js index 7894416ea7..99fed60efd 100644 --- a/scripts/import-pjs-config.js +++ b/scripts/import-pjs-config.js @@ -45,6 +45,9 @@ const unreliableRpcProviders = [ // test if rpc ends with `onfinality.io/public-ws` or `onfinality.io/public-ws/` /onfinality\.io\/public-ws\/?$/i, + + // test if rpc ends with `rpc.polkadot.io` or `kusama-rpc.polkadot.io` + /(?:kusama-)?rpc\.polkadot\.io\/?$/i, ] const sortGoodFirst = (a, b) => {