* 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:
@ -616,7 +616,7 @@ fn main() {
|
||||
enable_rpc_transaction_history: true,
|
||||
enable_cpi_and_log_storage: true,
|
||||
faucet_addr,
|
||||
..JsonRpcConfig::default()
|
||||
..JsonRpcConfig::default_for_test()
|
||||
})
|
||||
.pubsub_config(PubSubConfig {
|
||||
enable_vote_subscription,
|
||||
|
@ -656,8 +656,16 @@ pub fn main() {
|
||||
Arg::with_name("minimal_rpc_api")
|
||||
.long("--minimal-rpc-api")
|
||||
.takes_value(false)
|
||||
.hidden(true)
|
||||
.help("Only expose the RPC methods required to serve snapshots to other nodes"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("full_rpc_api")
|
||||
.long("--full-rpc-api")
|
||||
.conflicts_with("minimal_rpc_api")
|
||||
.takes_value(false)
|
||||
.help("Expose RPC methods for querying chain state and transaction history"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("obsolete_v1_7_rpc_api")
|
||||
.long("--enable-rpc-obsolete_v1_7")
|
||||
@ -2171,6 +2179,10 @@ pub fn main() {
|
||||
None
|
||||
};
|
||||
|
||||
if matches.is_present("minimal_rpc_api") {
|
||||
warn!("--minimal-rpc-api is now the default behavior. This flag is deprecated and can be removed from the launch args")
|
||||
}
|
||||
|
||||
let mut validator_config = ValidatorConfig {
|
||||
require_tower: matches.is_present("require_tower"),
|
||||
tower_storage,
|
||||
@ -2192,7 +2204,7 @@ pub fn main() {
|
||||
faucet_addr: matches.value_of("rpc_faucet_addr").map(|address| {
|
||||
solana_net_utils::parse_host_port(address).expect("failed to parse faucet address")
|
||||
}),
|
||||
minimal_api: matches.is_present("minimal_rpc_api"),
|
||||
full_api: matches.is_present("full_rpc_api"),
|
||||
obsolete_v1_7_api: matches.is_present("obsolete_v1_7_rpc_api"),
|
||||
max_multiple_accounts: Some(value_t_or_exit!(
|
||||
matches,
|
||||
|
Reference in New Issue
Block a user