Move obsolete rpc endpoints to separate api for removal (#16500)

* Move obsolete rpc methods to separate api for removal

* Remove obsolete method from docs

* Fix test using obs method
This commit is contained in:
Tyera Eulberg
2021-04-12 20:33:40 -06:00
committed by GitHub
parent 05ad979a2d
commit 70f3f7e679
5 changed files with 160 additions and 309 deletions

View File

@@ -1163,6 +1163,12 @@ pub fn main() {
.takes_value(false)
.help("Only expose the RPC methods required to serve snapshots to other nodes"),
)
.arg(
Arg::with_name("obsolete_v1_7_rpc_api")
.long("--enable-rpc-obsolete_v1_7")
.takes_value(false)
.help("Enable the obsolete RPC methods removed in v1.7"),
)
.arg(
Arg::with_name("private_rpc")
.long("--private-rpc")
@@ -2064,6 +2070,7 @@ pub fn main() {
solana_net_utils::parse_host_port(address).expect("failed to parse faucet address")
}),
minimal_api: matches.is_present("minimal_rpc_api"),
obsolete_v1_7_api: matches.is_present("obsolete_v1_7_rpc_api"),
max_multiple_accounts: Some(value_t_or_exit!(
matches,
"rpc_max_multiple_accounts",