rpc: use minimal mode by default (backport #22734) (#22879)

* rpc: use minimal mode by default

(cherry picked from commit eac4a6df68)

# Conflicts:
#	local-cluster/tests/local_cluster.rs

* test-validator-bin: reinstate full rpc method set

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2022-02-03 08:25:49 +00:00
committed by GitHub
parent fb8db79e63
commit 69e207ca58
18 changed files with 117 additions and 40 deletions

View File

@ -50,7 +50,7 @@ To enable specific scenarios, the cluster needs to be booted with special config
For example:
```text
let mut validator_config = ValidatorConfig::default();
let mut validator_config = ValidatorConfig::default_for_test();
let local = LocalCluster::new_with_config(
num_nodes,
10_000,
@ -66,7 +66,7 @@ For example, there is a bug that shows that the cluster fails when it is flooded
Configure the RPC service:
```text
let mut validator_config = ValidatorConfig::default();
let mut validator_config = ValidatorConfig::default_for_test();
validator_config.rpc_config.enable_rpc_gossip_push = true;
validator_config.rpc_config.enable_rpc_gossip_refresh_active_set = true;
```