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) => {