Skip to content

Commit

Permalink
Remove polkadot and kusama unsupported rpcs (#82)
Browse files Browse the repository at this point in the history
* chore: remove polkadot and kusama unsupported rpcs

* add removed polkadot and kusama rpcs to unreliable rpcs list

---------

Co-authored-by: alecdwm <[email protected]>
  • Loading branch information
chidg and alecdwm authored Dec 14, 2023
1 parent f2eb90a commit 48e32db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chaindata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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"
]
Expand Down
3 changes: 3 additions & 0 deletions scripts/import-pjs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 48e32db

Please sign in to comment.