From 9b994d67b3335d164eb0d1254472324918ef952b Mon Sep 17 00:00:00 2001 From: __ <8144986+fschr@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:43:23 -0600 Subject: [PATCH] Fix erroneous Cluster websocket ports The default Solana validator websocket port is 8900, not 9000. Cluster should return websocket URLs with the default port. --- client/src/cluster.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cluster.rs b/client/src/cluster.rs index 2cb61d66ee..1ef9a7d2e7 100644 --- a/client/src/cluster.rs +++ b/client/src/cluster.rs @@ -87,8 +87,8 @@ impl Cluster { Cluster::Devnet => "wss://api.devnet.solana.com", Cluster::Testnet => "wss://api.testnet.solana.com", Cluster::Mainnet => "wss://api.mainnet-beta.solana.com", - Cluster::Localnet => "ws://127.0.0.1:9000", - Cluster::Debug => "ws://34.90.18.145:9000", + Cluster::Localnet => "ws://127.0.0.1:8900", + Cluster::Debug => "ws://34.90.18.145:8900", Cluster::Custom(_url, ws_url) => ws_url, } }