From d3a16e4e13c87d55fd8431a751df25873f93dff7 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 30 Aug 2020 22:21:36 -0700 Subject: [PATCH] Bump RPC banks up 1 port to avoid web3.js wss port conflict (cherry picked from commit f8bb93a0f48bd805beba3ad1d47e8255cfdd8e08) --- validator/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validator/src/main.rs b/validator/src/main.rs index a9d11c96d1..3aab07a7be 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -621,7 +621,7 @@ pub fn main() { .value_name("PORT") .takes_value(true) .validator(port_validator) - .help("Use this port for JSON RPC, the next port for the RPC websocket, and the following for the RPC banks API"), + .help("Use this port for JSON RPC, the next port for the RPC websocket, and then third port for the RPC banks API"), ) .arg( Arg::with_name("private_rpc") @@ -988,7 +988,7 @@ pub fn main() { }, rpc_ports: value_t!(matches, "rpc_port", u16) .ok() - .map(|rpc_port| (rpc_port, rpc_port + 1, rpc_port + 2)), + .map(|rpc_port| (rpc_port, rpc_port + 1, rpc_port + 3)), voting_disabled: matches.is_present("no_voting"), wait_for_supermajority: value_t!(matches, "wait_for_supermajority", Slot).ok(), trusted_validators,